summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2021-05-15 07:31:10 +0200
committerHolger Paradies <retabell@gmx.de>2021-05-15 09:42:30 +0200
commit80c1c488bb2b1c2adbbf63e6d0aa8fbf5f75b7b4 (patch)
tree1809b5cabfc7d10684917063fd165fa2e31846dd
parentdd74add5887c07204f5b14f68d713d0750e150b2 (diff)
downloadkanotix-80c1c488bb2b1c2adbbf63e6d0aa8fbf5f75b7b4.zip
kanotix-80c1c488bb2b1c2adbbf63e6d0aa8fbf5f75b7b4.tar.gz
Persistent add new mountpoint
check for /run/live/medium
-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