mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@26c91a9
This commit is contained in:
@@ -15,8 +15,23 @@ SKELETON_INIT_OPENRC_DEPENDENCIES = skeleton-init-common
|
||||
|
||||
SKELETON_INIT_OPENRC_PROVIDES = skeleton
|
||||
|
||||
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[[: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) '\:^#[[:blank:]]*/dev/root[[:blank:]]:s/^# //' $(TARGET_DIR)/etc/fstab
|
||||
endef
|
||||
endif # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
|
||||
|
||||
define SKELETON_INIT_OPENRC_INSTALL_TARGET_CMDS
|
||||
$(call SYSTEM_RSYNC,$(SKELETON_INIT_OPENRC_PKGDIR)/skeleton,$(TARGET_DIR))
|
||||
$(SKELETON_INIT_OPENRC_ROOT_RO_OR_RW)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# <file system> <mount pt> <type> <options> <dump> <pass>
|
||||
/dev/root / ext2 ro,noauto 0 0
|
||||
tmpfs /tmp tmpfs mode=1777 0 0
|
||||
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
/etc/init.d/sysv-rcs
|
||||
Reference in New Issue
Block a user