summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/9000-enable-persistent5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9000-enable-persistent b/config/chroot_local-includes/lib/live/config/9000-enable-persistent
index 0ef6a82..562df9d 100755
--- a/config/chroot_local-includes/lib/live/config/9000-enable-persistent
+++ b/config/chroot_local-includes/lib/live/config/9000-enable-persistent
@@ -20,8 +20,11 @@ then
return
fi
-case "$(awk '{if($2=="/live/image"||$2=="/lib/live/mount/medium"){print $1;}}' /proc/mounts)" in
+case "$(awk '{if($2=="/live/image"||$2=="/lib/live/mount/medium"||$2=="/run/live/medium"){print $1;}}' /proc/mounts)" in
/dev/sd*)
+ if [ -d "/run/live/persistence" ]; then
+ rm -f /home/${LIVE_USERNAME}/Desktop/enable_persistent.desktop
+ fi
case "$( ls /grub.cmdline 2>/dev/null)" in
/grub.cmdline)
rm -f /home/${LIVE_USERNAME}/Desktop/enable_persistent.desktop