Could somebody look at this bug please? It's quite important, and results in my root filesystem never being remounted readonly before a reboot.
To reproduce it, try this:
1. try remounting the root filesystem like /etc/init.d/umountroot does it when you shut down. it can't, because it's busy,but at least it finds the first mount point:
$ sudo mount -n -o remount,ro /
mount: / is busy
2. add a "bind" mount of the root filesystem to /etc/fstab:
3. repeat step 1. this time mount doesn't find the correct mount point, so even if the filesystem wasn't busy, the command would still fail when you shut down:
$ sudo mount -n -o remount,ro /
mount: /tmp/root not mounted already, or bad option
Could somebody look at this bug please? It's quite important, and results in my root filesystem never being remounted readonly before a reboot.
To reproduce it, try this:
1. try remounting the root filesystem like /etc/init. d/umountroot does it when you shut down. it can't, because it's busy,but at least it finds the first mount point:
$ sudo mount -n -o remount,ro /
mount: / is busy
2. add a "bind" mount of the root filesystem to /etc/fstab:
$ mkdir /tmp/root
$ sudo bash -c "echo / /tmp/root none bind 0 0 >> /etc/fstab"
3. repeat step 1. this time mount doesn't find the correct mount point, so even if the filesystem wasn't busy, the command would still fail when you shut down:
$ sudo mount -n -o remount,ro /
mount: /tmp/root not mounted already, or bad option