Comment 95 for bug 125702

Revision history for this message
Ben Greear (greearb) wrote :

Here is the /etc/init.d/umountroot file.

The main trick to properly unmounting aufs root is this:

mount -n -o remount,noxino / || echo "Remount noxino / failed: $?"
# This next fails, but over-all, things work, so leaving it in in case
# it has some partial benefit.
mount -n -o remount,mod:/cow=ro / || echo "Remount /cow(ro) failed: $?"
mount -n -o remount,ro /cow || echo "Remount /cow (ro) failed: $?"
mount -n -o remount,ro /