mirror of
https://git.yoctoproject.org/poky
synced 2026-06-04 02:00:04 +00:00
defaultsetup.conf: enable select init manager
Introduce a new variable INIT_MANAGER and create 4 init-manager-*.inc files to configure init manager settings. Available values of INIT_MANAGER are sysvinit, systemd, mdev-busybox and a default of none. 'none' provides backwards compatibility. The settings of various VIRTUAL-RUNTIME variables are moved into these files from the packagegroups. [YOCTO #13031] [Modifications by RP for backwards compatibility] (From OE-Core rev: 8d0b4704a526a48cd5e67df61b613424bbbdccde) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -23,3 +23,6 @@ PACKAGE_CLASSES ?= "package_ipk"
|
||||
INHERIT_BLACKLIST = "blacklist"
|
||||
INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool"
|
||||
INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST}"
|
||||
|
||||
INIT_MANAGER ??= "none"
|
||||
require conf/distro/include/init-manager-${INIT_MANAGER}.inc
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# enable mdev/busybox for init
|
||||
DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " systemd sysvinit"
|
||||
VIRTUAL-RUNTIME_dev_manager ??= "busybox-mdev"
|
||||
VIRTUAL-RUNTIME_init_manager ??= "busybox"
|
||||
VIRTUAL-RUNTIME_initscripts ??= "initscripts"
|
||||
VIRTUAL-RUNTIME_keymaps ??= "keymaps"
|
||||
VIRTUAL-RUNTIME_login_manager ??= "busybox"
|
||||
@@ -0,0 +1,3 @@
|
||||
VIRTUAL-RUNTIME_init_manager ??= "sysvinit"
|
||||
VIRTUAL-RUNTIME_initscripts ??= "initscripts"
|
||||
VIRTUAL-RUNTIME_login_manager ??= "busybox"
|
||||
@@ -0,0 +1,6 @@
|
||||
# Use systemd for system initialization
|
||||
DISTRO_FEATURES_append = " systemd"
|
||||
DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " sysvinit"
|
||||
VIRTUAL-RUNTIME_init_manager ??= "systemd"
|
||||
VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units"
|
||||
VIRTUAL-RUNTIME_login_manager ??= "shadow-base"
|
||||
@@ -0,0 +1,6 @@
|
||||
# Use sysvinit for system initialization
|
||||
DISTRO_FEATURES_append = " sysvinit"
|
||||
DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " systemd"
|
||||
VIRTUAL-RUNTIME_init_manager ??= "sysvinit"
|
||||
VIRTUAL-RUNTIME_initscripts ??= "initscripts"
|
||||
VIRTUAL-RUNTIME_login_manager ??= "busybox"
|
||||
@@ -18,9 +18,6 @@ MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
|
||||
|
||||
# Distro can override the following VIRTUAL-RUNTIME providers:
|
||||
VIRTUAL-RUNTIME_dev_manager ?= "udev"
|
||||
VIRTUAL-RUNTIME_login_manager ?= "busybox"
|
||||
VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
|
||||
VIRTUAL-RUNTIME_initscripts ?= "initscripts"
|
||||
VIRTUAL-RUNTIME_keymaps ?= "keymaps"
|
||||
|
||||
EFI_PROVIDER ??= "grub-efi"
|
||||
|
||||
@@ -111,9 +111,6 @@ RDEPENDS_packagegroup-core-full-cmdline-dev-utils = "\
|
||||
patch \
|
||||
"
|
||||
|
||||
VIRTUAL-RUNTIME_initscripts ?= "initscripts"
|
||||
VIRTUAL-RUNTIME_init_manager ?= "sysvinit"
|
||||
VIRTUAL-RUNTIME_login_manager ?= "busybox"
|
||||
VIRTUAL-RUNTIME_syslog ?= "sysklogd"
|
||||
RDEPENDS_packagegroup-core-full-cmdline-initscripts = "\
|
||||
${VIRTUAL-RUNTIME_initscripts} \
|
||||
|
||||
Reference in New Issue
Block a user