Edge: root filesystem mounted as readonly after openrc update to 0.24.1
System: alpine edge x86-64 installed to HDD in virtualbox without guest additions or any other vbox modules. The system has been running and updating fine for some months prior to this issue.
After updating openrc and booting, `/` is mounted as readonly, and the same happens with further boots. Executing `mount -o remount,rw /` after logging in seem to make it usable again.
It seems the offending commit is 75beafaa , and specifically the update of `0002-force-root-be-rw-before-localmount.patch` .
This is how this patch looked with openrc 0.23.2: http://git.alpinelinux.org/cgit/aports/tree/main/openrc/0002-force-root-be-rw-before-localmount.patch?id=e65aa032e89545870845918ca05d4943e0ec10f0
And this is how this patch looks now with openrc 0.24.1: http://git.alpinelinux.org/cgit/aports/tree/main/openrc/0002-force-root-be-rw-before-localmount.patch?id=75beafaab9382148ffdd85d7c1444775b29b44d7
It seems the patch removes `root` and doesn’t add one like the previous patch did.
I first attempted to just disable the new patch as if it didn’t exist. I directly edited the file `/etc/init.d/localmount` (i.e. restore `root` to both the `use` and `after` lines of `depend()`) - which didn’t fix the issue - the system still booted with `/` readonly.
I then re-applied the new patch (i.e. removed `root` from the use/after lines) and also applied the old patch on top (changed `need fsck` to `need fsck root`) - which seems to have fixed the issue. The system now boots correctly with `/` mounted as read/write.
However, I don’t know why the new patch removes `root` to begin with, and so I don’t know if my fix is correct.
(from redmine: issue id 7042, created on 2017-03-19, closed on 2017-05-22)
- Changesets:
- Revision e600c084 by Kaarle Ritvanen on 2017-03-20T20:17:27Z:
main/openrc: fix re-mounting root file system
fixes #7042