Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@openwide.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] fs: use our own mkpasswd when creating users
Date: Sat, 10 May 2014 16:14:43 +0200	[thread overview]
Message-ID: <536E3453.9070503@openwide.fr> (raw)
In-Reply-To: <1399729186-30497-1-git-send-email-yann.morin.1998@free.fr>

Hi Yann,

Le 10/05/2014 15:39, Yann E. MORIN a ?crit :
> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
> 
> Export PATH=$(BR_PATH) so that our own mkpasswd is found before
> any existing host-system one.
> 
> Reported-by: Romain Naour <romain.naour@openwide.fr>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Samuel Martin <s.martin49@gmail.com>
> ---
>  fs/common.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/common.mk b/fs/common.mk
> index 831365e..47199c7 100644
> --- a/fs/common.mk
> +++ b/fs/common.mk
> @@ -83,7 +83,7 @@ ifneq ($$(ROOTFS_USERS_TABLES),)
>  	cat $$(ROOTFS_USERS_TABLES) >> $(USERS_TABLE)
>  endif
>  	printf '$(subst $(sep),\n,$(PACKAGES_USERS))' >> $(USERS_TABLE)
> -	$(TOPDIR)/support/scripts/mkusers $(USERS_TABLE) $(TARGET_DIR) >> $(FAKEROOT_SCRIPT)
> +	PATH=$(BR_PATH) $(TOPDIR)/support/scripts/mkusers $(USERS_TABLE) $(TARGET_DIR) >> $(FAKEROOT_SCRIPT)
>  	echo "$$(ROOTFS_$(2)_CMD)" >> $$(FAKEROOT_SCRIPT)
>  	chmod a+x $$(FAKEROOT_SCRIPT)
>  	$$(HOST_DIR)/usr/bin/fakeroot -- $$(FAKEROOT_SCRIPT)
> 

Tested-by: Romain Naour <romain.naour@openwide.fr>

Tested on Fedora host which has an incompatible version of mkpasswd.

Best regards,
Romain Naour

  reply	other threads:[~2014-05-10 14:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-10 13:39 [Buildroot] [PATCH] fs: use our own mkpasswd when creating users Yann E. MORIN
2014-05-10 14:14 ` Romain Naour [this message]
2014-05-11  8:51 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=536E3453.9070503@openwide.fr \
    --to=romain.naour@openwide.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox