umount -r

Bruce Dubbs
2013-05-10T04:06:04Z

We have as a part of our shutdown scripts:

umount -a -d -r -t notmpfs,nosysfs,nodevtmpfs,noproc

What we expect is that the rootfs (/) will fail, but be remounted read
only. This doesn't seem to be happening because we get messages about
recovery needed during the next boot.

We can work around it by adding

mount -n -o remount,ro /

I have a report that umount works as expected in version 2.21.2, but not
in 2.22.2 or later. I this a misunderstanding about umount or a bug?

-- Bruce Dubbs
linuxfromscratch