summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-patches/remount_persistence_filesystem_readonly_on_shutdown.patch
blob: 6fcffefb5a8e5297871486f35c72bdeba6532533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/bin/live-medium-cache b/bin/live-medium-cache
index f85b2b2..fec1496 100755
--- a/bin/live-medium-cache
+++ b/bin/live-medium-cache
@@ -75,7 +75,7 @@
 mount -o remount,ro /lib/live/mount/overlay > /dev/null 2>&1
 
 # Remounting any persistence devices read-only
-for _MOUNT in $(awk '/\/lib\/live\/mount\/persistence/ { print $2 }' /proc/mounts)
+for _MOUNT in $(awk '/\/(lib\/live\/mount|live)\/persistence/ { print $2 }' /proc/mounts)
 do
 	mount -o remount,ro ${_MOUNT} > /dev/null 2>&1
 done