Move romount to mount-ro and use the umount -r option as it's more reliable for / --bind mounts, Gentoo #239922. Thanks to Duncan.
This commit is contained in:
@@ -28,11 +28,11 @@ do_unmount()
|
||||
mountinfo --quiet "${mnt}" || continue
|
||||
|
||||
case "${cmd}" in
|
||||
umount*)
|
||||
umount)
|
||||
ebegin "Unmounting ${mnt}"
|
||||
;;
|
||||
*)
|
||||
ebegin "Remounting ${mnt}"
|
||||
ebegin "Remounting ${mnt} read only"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Reference in New Issue
Block a user