fs: use our own mkpasswd when creating users
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 10 May 2014 13:39:46 +0000 (15:39 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 11 May 2014 08:51:06 +0000 (10:51 +0200)
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>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
fs/common.mk

index 831365ef115f55f1df54c856163684c0e0c3601c..47199c7538bef0ca3966aa65798552b9ea325a02 100644 (file)
@@ -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)