summaryrefslogtreecommitdiff
path: root/config/binary_grub
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2012-05-20 22:00:08 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2012-05-20 22:00:08 +0200
commitf4d6726311705a123c8e2f9a7e736bd253c3dee4 (patch)
tree750440433f4c82fa6c4a5231d3233b1417137d08 /config/binary_grub
parentdbaa9c33ea4c89a33f7af911b3c5f5a0c1935794 (diff)
downloadkanotix-f4d6726311705a123c8e2f9a7e736bd253c3dee4.zip
kanotix-f4d6726311705a123c8e2f9a7e736bd253c3dee4.tar.gz
grub.cfg: support for 2in1 persistent
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