summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2021-05-15 09:02:30 +0200
committerHolger Paradies <retabell@gmx.de>2021-05-15 09:02:30 +0200
commit00dd41f44b693287a5c50e53e9434ff4ddbae7aa (patch)
treedea09306c185c3c17f8e252c2659193804117191
parenta1a826f154b87aae8846489c91031d4c4623ee1e (diff)
downloadacritoxinstaller-00dd41f44b693287a5c50e53e9434ff4ddbae7aa.zip
acritoxinstaller-00dd41f44b693287a5c50e53e9434ff4ddbae7aa.tar.gz
Persistent add new mountpoint
honor /run/live/medium
-rwxr-xr-xkanotix/9000-enable-persistent9
1 files changed, 6 insertions, 3 deletions
diff --git a/kanotix/9000-enable-persistent b/kanotix/9000-enable-persistent
index 734af95..efd21e3 100755
--- a/kanotix/9000-enable-persistent
+++ b/kanotix/9000-enable-persistent
@@ -14,14 +14,17 @@ Configure_Persistent
Configure_Persistent ()
{
-if ! [ -x /usr/bin/enable_persistent_live ]
+if ! [ -x /usr/local/bin/enable_persistent_live.bash ]
then
touch /var/lib/live/config/enable-persistent
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
@@ -31,7 +34,7 @@ case "$(awk '{if($2=="/live/image"||$2=="/lib/live/mount/medium"){print $1;}}' /
[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/bin/enable_persistent_live
+Exec=/usr/local/bin/enable_persistent_live.bash
Icon=acritoxinstaller
MimeType=
Name[de]=»persistent« aktivieren