Stopping swap results in RO root filesystem
Running “/etc/init.d/swap stop” changes the mount of the root tmpfs filesystem from rw to ro. Tested on 2.2.2. Running “swapoff -a” does not have the same problem.
I notice that the swap init.d script runs “umount -a -t tmpfs 2>/dev/null”, but it’s the same init.d script as on 1.10, where I know this issue didn’t exist. Perhaps it’s a busybox umount change?
I modified the init.d to change to “umount -a -t tmpfs”, and the output
was:
* Caching service dependencies … [ ok ]
* Deactivating swap devices …
umount: can’t umount /lib/rc/init.d: Device or resource busy
umount: can’t umount /dev: Device or resource busy
When it works, the output is:
* Caching service dependencies … [ ok ]
* Deactivating swap devices …
umount: can’t umount /lib/rc/init.d: Device or resource busy
umount: can’t umount /: Device or resource busy
umount: can’t umount /dev: Device or resource busy
(from redmine: issue id 711, created on 2011-07-23, closed on 2011-08-12)
- Changesets:
- Revision 313b6883 by Natanael Copa on 2011-08-11T07:44:51Z:
main/openrc: swap: only unmount tmpfs when shutting down
ref #711
- Revision 8e532abb by Natanael Copa on 2011-08-11T07:47:20Z:
main/openrc: swap: only unmount tmpfs when shutting down
fixes #711
(cherry picked from commit 313b6883a2c955ea2797fb6b8632c126471463b7)