summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/binary_grub/grub.cfg21
-rw-r--r--config/chroot_local-includes/lib/live/config/900-enable-persistent34
2 files changed, 55 insertions, 0 deletions
diff --git a/config/binary_grub/grub.cfg b/config/binary_grub/grub.cfg
index 3cd4f20..902c01e 100644
--- a/config/binary_grub/grub.cfg
+++ b/config/binary_grub/grub.cfg
@@ -28,6 +28,27 @@ else
set menu_color_highlight=white/blue
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
+ }
+ fi
+fi
+
menuentry 'Start Kanotix DE' --class kanotix64 --class gnu-linux --class gnu --class os {
echo 'Loading Linux ...'
linux /live/vmlinuz ${boot_de} quiet splash
diff --git a/config/chroot_local-includes/lib/live/config/900-enable-persistent b/config/chroot_local-includes/lib/live/config/900-enable-persistent
new file mode 100644
index 0000000..0d424e2
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/900-enable-persistent
@@ -0,0 +1,34 @@
+#!/bin/sh
+# "enable persistent" desktop-icon
+
+case "$(awk '{if($2=="/live/image"){print $1;}}' /proc/mounts)" in
+/dev/sd*)
+ case "$(awk '{if($2=="/live/cow"){print $1;}}' /proc/mounts)" in
+ /dev/sd*)
+ rm -f /home/${LIVE_USERNAME}/Desktop/enable_persistent.desktop
+ ;;
+ *)
+ sudo -u "${LIVE_USERNAME}" sh -c "mkdir -p /home/${LIVE_USERNAME}/Desktop; cat > /home/${LIVE_USERNAME}/Desktop/enable_persistent.desktop" <<"EOF"
+[Desktop Entry]
+Comment[de]=Diesen Live-USB-Stick persistent machen, d.h. alle Änderungen werden auf dem Stick gespeichert.
+Comment=Make this Live-USB-Stick persistent, i.e. all changes will be saved to the stick.
+Exec=/usr/local/bin/enable_persistent_live.bash
+Icon=acritoxinstaller
+MimeType=
+Name[de]=»persistent« aktivieren
+Name=enable »persistent«
+StartupNotify=true
+Terminal=false
+TerminalOptions=
+Type=Application
+EOF
+ ;;
+ esac
+ ;;
+*)
+ rm -f /home/${LIVE_USERNAME}/Desktop/enable_persistent.desktop
+ ;;
+esac
+
+exit 0
+