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>
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;"