mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-25 20:26:34 +00:00
system/Config.in: add new init - openrc
This is very basic settings for openrc init. * system/Config.in Allows to select openrc as init system (which auto selects openrc-skeleton and openrc package). * package/ifupdown-scripts/Config.in openrc has its own service to bring up/down interfaces, so ifupdown-scripts should not be enabled when openrc is enabled to prevent service clash. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl> [Thomas: take into account the !BR2_STATIC_LIBS dependency] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
a7314d842e
commit
eb77734d11
@ -1,7 +1,7 @@
|
|||||||
config BR2_PACKAGE_IFUPDOWN_SCRIPTS
|
config BR2_PACKAGE_IFUPDOWN_SCRIPTS
|
||||||
bool "ifupdown scripts"
|
bool "ifupdown scripts"
|
||||||
default y if BR2_ROOTFS_SKELETON_DEFAULT
|
default y if BR2_ROOTFS_SKELETON_DEFAULT
|
||||||
depends on !BR2_PACKAGE_SYSTEMD_NETWORKD
|
depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && !BR2_PACKAGE_OPENRC
|
||||||
help
|
help
|
||||||
Set of scripts used by ifupdown (either the standalone one,
|
Set of scripts used by ifupdown (either the standalone one,
|
||||||
or the busybox one) to bring network up, or tear it down.
|
or the busybox one) to bring network up, or tear it down.
|
||||||
|
@ -2,6 +2,7 @@ config BR2_PACKAGE_OPENRC
|
|||||||
bool "openrc"
|
bool "openrc"
|
||||||
depends on BR2_USE_MMU # fork()
|
depends on BR2_USE_MMU # fork()
|
||||||
depends on !BR2_STATIC_LIBS
|
depends on !BR2_STATIC_LIBS
|
||||||
|
depends on BR2_INIT_OPENRC
|
||||||
select BR2_PACKAGE_NCURSES
|
select BR2_PACKAGE_NCURSES
|
||||||
help
|
help
|
||||||
Init that works on top of pid 1 (for example
|
Init that works on top of pid 1 (for example
|
||||||
@ -21,4 +22,5 @@ config BR2_PACKAGE_OPENRC
|
|||||||
|
|
||||||
comment "openrc needs a toolchain w/ dynamic library"
|
comment "openrc needs a toolchain w/ dynamic library"
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
|
depends on BR2_INIT_OPENRC
|
||||||
depends on BR2_STATIC_LIBS
|
depends on BR2_STATIC_LIBS
|
||||||
|
@ -11,6 +11,7 @@ config BR2_ROOTFS_SKELETON_DEFAULT
|
|||||||
bool "default target skeleton"
|
bool "default target skeleton"
|
||||||
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_SYSV
|
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_SYSV
|
||||||
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_BUSYBOX
|
select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_BUSYBOX
|
||||||
|
select BR2_PACKAGE_SKELETON_INIT_OPENRC if BR2_INIT_OPENRC
|
||||||
select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_INIT_SYSTEMD
|
select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_INIT_SYSTEMD
|
||||||
select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_INIT_NONE
|
select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_INIT_NONE
|
||||||
help
|
help
|
||||||
@ -98,6 +99,16 @@ config BR2_INIT_SYSV
|
|||||||
select BR2_PACKAGE_INITSCRIPTS
|
select BR2_PACKAGE_INITSCRIPTS
|
||||||
select BR2_PACKAGE_SYSVINIT
|
select BR2_PACKAGE_SYSVINIT
|
||||||
|
|
||||||
|
config BR2_INIT_OPENRC
|
||||||
|
bool "OpenRC"
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
depends on !BR2_STATIC_LIBS
|
||||||
|
select BR2_PACKAGE_OPENRC
|
||||||
|
|
||||||
|
comment "openrc needs a toolchain w/ dynamic library"
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
depends on BR2_STATIC_LIBS
|
||||||
|
|
||||||
# In Buildroot, we decided not to support a split-usr when systemd is
|
# In Buildroot, we decided not to support a split-usr when systemd is
|
||||||
# used as an init system. This is a design decision, not a systemd
|
# used as an init system. This is a design decision, not a systemd
|
||||||
# issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
|
# issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
|
||||||
|
Loading…
x
Reference in New Issue
Block a user