try to fix groot-problem of grub
[grml-debootstrap.git] / chroot-script
index e6c95a7..620a2c6 100644 (file)
@@ -158,7 +158,7 @@ if [ -n "$GROOT" ] ; then
 
    # finally install grub
    update-grub -y
-   sed -i "s/groot=.*/groot=(${GROOT})/g" /boot/grub/menu.lst
+   sed -i "s/^# groot=.*/# groot=(${GROOT})/g" /boot/grub/menu.lst
    # not sure why savedefault does not work for me; any ideas?
    sed -i "s/^savedefault.*/# &/g" /boot/grub/menu.lst
    update-grub -y