target: add option to set the root password
authorYann E. MORIN <yann.morin.1998@free.fr>
Fri, 28 Dec 2012 14:07:33 +0000 (14:07 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 30 Dec 2012 17:00:16 +0000 (18:00 +0100)
commita45871bfc6a3f800548954dd364b5f53e81804ab
treec096d3defbcb6a8abfc424f2a24f6f14ebdbea47
parentaa5d13568d193b741d4c20fb8670a3f7334efdcb
target: add option to set the root password

Add an option in the menuconfig to specify a root password.

If set to empty, no root password is created; otherwise, the password is
encrypted using MD5 (MD5 is not the default for crypt(3), DES-56 is, but
MD5 is widely available, not-so-strong, but not-so-weak either).

Add a check for 'mkpasswd' as a new dependency.

[Peter: fix typo/capitilization and simplify logic]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
support/dependencies/dependencies.sh
system/Config.in
system/system.mk