Follow-up to
e139edb
When dracut is invoked with -m and shell-interpreter is not listed,
than shell interpreter is not included.
The base module is the only module that is absolutely mandatory
(and its dependencies).
shell-intrepreter dracut module is optional - the same way e.g.
dash module is optional.
ln -s dracut-util "${initdir}/usr/bin/dracut-getarg"
ln -s dracut-util "${initdir}/usr/bin/dracut-getargs"
+ # fallback when shell-interpreter is not included
+ [ ! -e "${initdir}/bin/sh" ] && inst_simple "${initdir}/bin/sh" "/bin/sh"
+
# add common users in /etc/passwd, it will be used by nfs/ssh currently
# use password for hostonly images to facilitate secure sulogin in emergency console
[[ $hostonly ]] && pwshadow='x'