initramfs: grub.cfg with rootfs set to readonly

Fixes: SYS#528
This commit is contained in:
Henning Heinold 2014-08-26 17:27:04 +02:00 committed by Holger Hans Peter Freyther
parent 0cef8c4fc3
commit 7b51764cfa
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ if [ -f /etc/grub.d/40_custom ] ; then
sed -i "s/__VGA_MODE__/$4/g" $GRUBCFG
sed -i "s/__CONSOLE__/$5/g" $GRUBCFG
sed -i "s/quiet/net.ifnames=0 quiet/g" $GRUBCFG
sed -i "s/rw/ro/g" $GRUBCFG
sed -i "/#/d" $GRUBCFG
sed -i "/exec tail/d" $GRUBCFG
chmod 0444 $GRUBCFG