fs/common.mk: add host-mkpasswd if PACKAGES_USERS is not empty
authorSamuel Martin <s.martin49@gmail.com>
Wed, 22 Jan 2014 20:59:41 +0000 (21:59 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 22 Jan 2014 21:08:28 +0000 (22:08 +0100)
commit22cdb652f51f08c52a87f66da49036eecdf68e8a
tree24814363b0abee8e3fb71953c8994630e03624b2
parent8157159b22efa774cb94030e5a079e628b0cea67
fs/common.mk: add host-mkpasswd if PACKAGES_USERS is not empty

When using a custom rootfs skeleton, the host-mkpasswd target is not
automatically built, even if some packages add users (i.e. when
PACKAGES_USERS is not empty).

In this case, the rootfs generation may fail because the mkpasswd
provided by some distribution does not support all options used in the
mkusers script.

This patch avoids such trouble by automatically adding the host-mkpasswd
package to the dependency list of the rootfs targets if users needs
to be created.

[Peter: minor rewording of commit message]
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
fs/common.mk