rootfsinstall.sh: update command line for Baytrail kernel and make chpass usage pwdutils compatible

This commit is contained in:
Silvan Calarco 2017-12-20 23:14:25 +01:00
parent 3bdcf49802
commit c6d71f5faa

View File

@ -414,7 +414,7 @@ if [ "${SAVE_ROOT_PARTUUID}" -a "${GROWIMAGE}" ]; then
fi
if [ "$SETUSERPASSWORD" ]; then
echo "$SETUSERPASSWORD" | chroot $ROOTMP chpasswd -m || {
echo "$SETUSERPASSWORD" | chroot $ROOTMP chpasswd -c MD5 || {
echo "ERROR: unable to set user password; aborting."
exit 1
}
@ -498,7 +498,7 @@ search --no-floppy --label --set=root $VOLUME_LABEL
menuentry "default" {
echo "Loading /boot/$KERNELDEST"
linux /boot/$KERNELDEST root=/dev/sda2 ro intel_idle.max_cstate=1 intel_pstate=disabled fbcon=rotate:1 quiet splash
linux /boot/$KERNELDEST root=/dev/sda2 ro fbcon=rotate:1 quiet splash
echo "Loading /boot/$INITRAMFSDEST"
initrd /boot/$INITRAMFSDEST
}