From ffc0510924979433e54f7197677855e26876ce4e Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 14 May 2022 12:39:10 +0200 Subject: liveinit: remount live media read-only when running from RAM This so that the live medium can be ejected after booting. --- liveinit.tpl | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3