|
@@ -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
|
|
# Comment /dev/root entry in fstab. When openrc does not find fstab entry for
|
|
# "/", it will try to remount "/" as "rw".
|
|
# "/", it will try to remount "/" as "rw".
|
|
define SKELETON_INIT_OPENRC_ROOT_RO_OR_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
|
|
endef
|
|
else
|
|
else
|
|
# Uncomment /dev/root entry in fstab which has "ro" option so openrc notices
|
|
# Uncomment /dev/root entry in fstab which has "ro" option so openrc notices
|
|
# it and doesn't remount root to rw.
|
|
# it and doesn't remount root to rw.
|
|
define SKELETON_INIT_OPENRC_ROOT_RO_OR_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
|
|
endef
|
|
endif # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
|
|
endif # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
|
|
|
|
|