package/skeleton-init-openrc: add support to remount rootfs as rw
authorMichał Łyszczek <michal.lyszczek@bofc.pl>
Sun, 4 Aug 2019 12:14:16 +0000 (14:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 23 Sep 2019 20:29:28 +0000 (22:29 +0200)
commitaf8c7b41f515e76b4f00cd333e938d09fd1503d4
tree2b1368ffd6f5b68da581d7a3a3c286cad578c8cc
parent162044407b0f3794cd6d70749ed615de5902c7c3
package/skeleton-init-openrc: add support to remount rootfs as rw

Add a pseudo entry for /dev/root in fstab, to tell openrc to properly
remount or not remount / read-write.

For consistency with systemd (which is the only other init system to
tweak an fstab basd on / being rw or not), we do this change in the
openrc skeleton rather than in the openrc package.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
[yann.morin.1998@free.fr:
  - tweak the sed expressions
  - reword commit log
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/skeleton-init-openrc/skeleton-init-openrc.mk
package/skeleton-init-openrc/skeleton/etc/fstab