aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-05-14 12:39:10 +0200
committer Eric Hameleers <alien@slackware.com>2022-05-14 12:39:10 +0200
commitffc0510924979433e54f7197677855e26876ce4e (patch)
tree1e291114e5200c382316101877448cdb56c6f086
parent31ab002024f2c15cd9d57678f35ad9841c0aeebd (diff)
downloadliveslak-ffc0510924979433e54f7197677855e26876ce4e.tar.gz
liveslak-ffc0510924979433e54f7197677855e26876ce4e.tar.xz
liveinit: remount live media read-only when running from RAM
This so that the live medium can be ejected after booting.
-rw-r--r--liveinit.tpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/liveinit.tpl b/liveinit.tpl
index d0d8351..24ef790 100644
--- a/liveinit.tpl
+++ b/liveinit.tpl
@@ -1100,6 +1100,8 @@ if [ "$RESCUE" = "" ]; then
# Even without persistence, we need to be able to write to the partition
# if we are using a LUKS container file:
mount -o remount,rw /mnt/media
+ else
+ mount -o remount,ro /mnt/media
fi
fi