summaryrefslogtreecommitdiff
path: root/config/binary_grub
diff options
context:
space:
mode:
Diffstat (limited to 'config/binary_grub')
-rw-r--r--config/binary_grub/grub.cfg17
1 files changed, 11 insertions, 6 deletions
diff --git a/config/binary_grub/grub.cfg b/config/binary_grub/grub.cfg
index 0a5d6df..9aba770 100644
--- a/config/binary_grub/grub.cfg
+++ b/config/binary_grub/grub.cfg
@@ -32,21 +32,26 @@ fi
insmod part_msdos
insmod btrfs
+set persistent=0
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
- }
+ set persistent=1
fi
fi
fi
#####
+if [ $persistent = 1 ] ; then
+ 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
+ }
+fi
+
menuentry 'Start Kanotix DE' --class kanotix64 --class gnu-linux --class gnu --class os {
echo 'Loading Linux ...'
linux /live/vmlinuz ${boot_de} quiet splash