diff options
author | Holger Paradies <retabell@gmx.de> | 2021-05-15 07:31:10 +0200 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2021-05-15 09:42:30 +0200 |
commit | 80c1c488bb2b1c2adbbf63e6d0aa8fbf5f75b7b4 (patch) | |
tree | 1809b5cabfc7d10684917063fd165fa2e31846dd /config/chroot_local-includes | |
parent | dd74add5887c07204f5b14f68d713d0750e150b2 (diff) | |
download | kanotix-80c1c488bb2b1c2adbbf63e6d0aa8fbf5f75b7b4.zip kanotix-80c1c488bb2b1c2adbbf63e6d0aa8fbf5f75b7b4.tar.gz |
Persistent add new mountpoint
check for /run/live/medium
Diffstat (limited to 'config/chroot_local-includes')
-rwxr-xr-x | config/chroot_local-includes/lib/live/config/9000-enable-persistent | 5 |
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 |