1################################################################################ 2# 3# skeleton-init-openrc 4# 5################################################################################ 6 7# The skeleton can't depend on the toolchain, since all packages depends on the 8# skeleton and the toolchain is a target package, as is skeleton. 9# Hence, skeleton would depends on the toolchain and the toolchain would depend 10# on skeleton. 11SKELETON_INIT_OPENRC_ADD_TOOLCHAIN_DEPENDENCY = NO 12SKELETON_INIT_OPENRC_ADD_SKELETON_DEPENDENCY = NO 13 14SKELETON_INIT_OPENRC_DEPENDENCIES = skeleton-init-common 15 16SKELETON_INIT_OPENRC_PROVIDES = skeleton 17 18ifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW),y) 19# Comment /dev/root entry in fstab. When openrc does not find fstab entry for 20# "/", it will try to remount "/" as "rw". 21define SKELETON_INIT_OPENRC_ROOT_RO_OR_RW 22 $(SED) '\:^/dev/root[[:blank:]]:s/^/# /' $(TARGET_DIR)/etc/fstab 23endef 24else 25# Uncomment /dev/root entry in fstab which has "ro" option so openrc notices 26# it and doesn't remount root to rw. 27define SKELETON_INIT_OPENRC_ROOT_RO_OR_RW 28 $(SED) '\:^#[[:blank:]]*/dev/root[[:blank:]]:s/^# //' $(TARGET_DIR)/etc/fstab 29endef 30endif # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW 31 32define SKELETON_INIT_OPENRC_INSTALL_TARGET_CMDS 33 $(call SYSTEM_RSYNC,$(SKELETON_INIT_OPENRC_PKGDIR)/skeleton,$(TARGET_DIR)) 34 $(SKELETON_INIT_OPENRC_ROOT_RO_OR_RW) 35endef 36 37$(eval $(generic-package)) 38