package/skeleton-init-openrc: new package

This basic skeleton is similar to skeleton-init-sysv.
All links in /var are same as in skeleton-init-sysv to be compatible
with current default filesystem scheme.

Exceptions:

* /dev/shm and /dev/pts dirs were removed, since they are created by
  openrc devfs service
* /etc/fstab does not need /dev/shm, /dev/pts and /sys entries
  becuse they are mounted by devfs and sysfs services respectively

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Michał Łyszczek 2019-05-12 21:55:39 +02:00 committed by Thomas Petazzoni
parent e6cf089741
commit a840e485d1
13 changed files with 42 additions and 0 deletions

View File

@ -1616,6 +1616,7 @@ F: board/pine64/rock64
F: configs/rock64_defconfig
F: configs/socrates_cyclone5_defconfig
F: package/openrc/
F: package/skeleton-init-openrc/
N: Michel Stempin <michel.stempin@wanadoo.fr>
F: board/licheepi/

View File

@ -5,6 +5,7 @@ menu "Target packages"
source "package/skeleton-custom/Config.in"
source "package/skeleton-init-common/Config.in"
source "package/skeleton-init-none/Config.in"
source "package/skeleton-init-openrc/Config.in"
source "package/skeleton-init-systemd/Config.in"
source "package/skeleton-init-sysv/Config.in"

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_SKELETON_INIT_OPENRC
bool
select BR2_PACKAGE_HAS_SKELETON
select BR2_PACKAGE_SKELETON_INIT_COMMON
config BR2_PACKAGE_PROVIDES_SKELETON
default "skeleton-init-openrc" if BR2_PACKAGE_SKELETON_INIT_OPENRC

View File

@ -0,0 +1,22 @@
################################################################################
#
# skeleton-init-openrc
#
################################################################################
# The skeleton can't depend on the toolchain, since all packages depends on the
# skeleton and the toolchain is a target package, as is skeleton.
# Hence, skeleton would depends on the toolchain and the toolchain would depend
# on skeleton.
SKELETON_INIT_OPENRC_ADD_TOOLCHAIN_DEPENDENCY = NO
SKELETON_INIT_OPENRC_ADD_SKELETON_DEPENDENCY = NO
SKELETON_INIT_OPENRC_DEPENDENCIES = skeleton-init-common
SKELETON_INIT_OPENRC_PROVIDES = skeleton
define SKELETON_INIT_OPENRC_INSTALL_TARGET_CMDS
$(call SYSTEM_RSYNC,$(SKELETON_INIT_OPENRC_PKGDIR)/skeleton,$(TARGET_DIR))
endef
$(eval $(generic-package))

View File

@ -0,0 +1 @@
../tmp/log

View File

@ -0,0 +1,3 @@
# <file system> <mount pt> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs mode=1777 0 0
tmpfs /run tmpfs mode=0755,nosuid,nodev 0 0

View File

@ -0,0 +1 @@
../tmp

View File

@ -0,0 +1 @@
../../tmp

View File

@ -0,0 +1 @@
../tmp

View File

@ -0,0 +1 @@
../tmp

View File

@ -0,0 +1 @@
../run

View File

@ -0,0 +1 @@
../tmp

View File

@ -0,0 +1 @@
../tmp