mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-02 21:48:20 +03:00
package/skeleton-init-openrc: fix root filesystem ro/rw remount
The regular expressions used in the sed commands assumes that there is a
space after '/dev/root' but the skeleton file contains a tab. Use a more
flexible '[[:blank:]]', instead.
Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit c51c981a06)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
00de661ec4
commit
7faac6dabe
@@ -19,13 +19,13 @@ ifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW),y)
|
||||
# Comment /dev/root entry in fstab. When openrc does not find fstab entry for
|
||||
# "/", it will try to remount "/" as "rw".
|
||||
define SKELETON_INIT_OPENRC_ROOT_RO_OR_RW
|
||||
$(SED) '\:^/dev/root :s/^/# /' $(TARGET_DIR)/etc/fstab
|
||||
$(SED) '\:^/dev/root[[:blank:]]:s/^/# /' $(TARGET_DIR)/etc/fstab
|
||||
endef
|
||||
else
|
||||
# Uncomment /dev/root entry in fstab which has "ro" option so openrc notices
|
||||
# it and doesn't remount root to rw.
|
||||
define SKELETON_INIT_OPENRC_ROOT_RO_OR_RW
|
||||
$(SED) '\:^# /dev/root:s/^# //' $(TARGET_DIR)/etc/fstab
|
||||
$(SED) '\:^#[[:blank:]]*/dev/root[[:blank:]]:s/^# //' $(TARGET_DIR)/etc/fstab
|
||||
endef
|
||||
endif # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
|
||||
|
||||
|
||||
Reference in New Issue
Block a user