]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
extrausers: add util-linux-sulogin to IMAGE_INSTALL ChenQi/sulogin-shadow
authorChen Qi <Qi.Chen@windriver.com>
Tue, 9 Sep 2014 02:46:14 +0000 (22:46 -0400)
committerChen Qi <Qi.Chen@windriver.com>
Tue, 9 Sep 2014 02:57:28 +0000 (10:57 +0800)
Previously, root with password set cannot login in rescue mode for
core-image-minimal. This is because that the busybox's sulogin is
not configured with FEATURE_SHADOWPASSWORDS enabled.

Add util-linux-sulogin in IMAGE_INSTALL_append properly to fix this problem.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
meta/classes/extrausers.bbclass

index faf57b108e52865f2e4ac827526021b27bd6c2ca..e9f4a259781e87560da4b37d8352d554bee2aa25 100644 (file)
@@ -15,7 +15,7 @@
 
 inherit useradd_base
 
-IMAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS', True))]}"
+IMAGE_INSTALL_append = " ${@['', 'base-passwd shadow util-linux-sulogin'][bool(d.getVar('EXTRA_USERS_PARAMS', True))]}"
 
 # Image level user / group settings
 ROOTFS_POSTPROCESS_COMMAND_append = " set_user_group;"