diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2012-03-11 20:07:13 +0100 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2012-03-11 20:07:13 +0100 |
commit | f8757becb42b606ce0834a803e18a87f7c568fd5 (patch) | |
tree | cdd1c4030e78690ddd36f61ae2932549a1898c73 /config/binary_grub | |
parent | c2ba38c43caddad20db954ffe12afe2848537b3e (diff) | |
download | kanotix-f8757becb42b606ce0834a803e18a87f7c568fd5.zip kanotix-f8757becb42b606ce0834a803e18a87f7c568fd5.tar.gz |
grub.cfg: check for 3rd partition before searching
Diffstat (limited to 'config/binary_grub')
-rw-r--r-- | config/binary_grub/grub.cfg | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/config/binary_grub/grub.cfg b/config/binary_grub/grub.cfg index 902c01e..52ae410 100644 --- a/config/binary_grub/grub.cfg +++ b/config/binary_grub/grub.cfg @@ -1,3 +1,4 @@ +echo Loading... set default=0 set timeout=8 @@ -17,6 +18,7 @@ if loadfont /boot/grub/unicode.pf2 ; then insmod video_cirrus insmod gfxterm terminal_output gfxterm + echo Loading... fi insmod png @@ -30,22 +32,24 @@ fi insmod part_msdos insmod btrfs -if search --label --set liverw --no-floppy live-rw ; then - if test -e (${liverw})/grub.cmdline ; then - source (${liverw})/grub.cmdline - menuentry 'Start Kanotix (persistent)' --class kanotix64 --class gnu-linux --class gnu --class os { - echo 'Loading Linux ...' - linux /live/vmlinuz ${persistent_cmdline} - echo 'Loading initial ramdisk ...' - initrd /live/initrd.img - } - else - menuentry 'Start Kanotix (persistent)' --class kanotix64 --class gnu-linux --class gnu --class os { - echo 'Loading Linux ...' - linux /live/vmlinuz ${boot_en} quiet splash persistent - echo 'Loading initial ramdisk ...' - initrd /live/initrd.img - } +if test -e ($root,msdos3) ; then + if search --label --set liverw --no-floppy live-rw ($root,msdos3) ; then + if test -e (${liverw})/grub.cmdline ; then + source (${liverw})/grub.cmdline + menuentry 'Start Kanotix (persistent)' --class kanotix64 --class gnu-linux --class gnu --class os { + echo 'Loading Linux ...' + linux /live/vmlinuz ${persistent_cmdline} + echo 'Loading initial ramdisk ...' + initrd /live/initrd.img + } + else + menuentry 'Start Kanotix (persistent)' --class kanotix64 --class gnu-linux --class gnu --class os { + echo 'Loading Linux ...' + linux /live/vmlinuz ${boot_en} quiet splash persistent + echo 'Loading initial ramdisk ...' + initrd /live/initrd.img + } + fi fi fi |