remount_persistence_filesystem_readonly_on_shutdown.patch 510 B

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