diff options
Diffstat (limited to 'meta/conf/distro')
-rw-r--r-- | meta/conf/distro/defaultsetup.conf | 3 | ||||
-rw-r--r-- | meta/conf/distro/include/init-manager-mdev-busybox.inc | 7 | ||||
-rw-r--r-- | meta/conf/distro/include/init-manager-none.inc | 3 | ||||
-rw-r--r-- | meta/conf/distro/include/init-manager-systemd.inc | 6 | ||||
-rw-r--r-- | meta/conf/distro/include/init-manager-sysvinit.inc | 6 |
5 files changed, 25 insertions, 0 deletions
diff --git a/meta/conf/distro/defaultsetup.conf b/meta/conf/distro/defaultsetup.conf index 20e61232e9..9b1ee20aaa 100644 --- a/meta/conf/distro/defaultsetup.conf +++ b/meta/conf/distro/defaultsetup.conf | |||
@@ -23,3 +23,6 @@ PACKAGE_CLASSES ?= "package_ipk" | |||
23 | INHERIT_BLACKLIST = "blacklist" | 23 | INHERIT_BLACKLIST = "blacklist" |
24 | INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool" | 24 | INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool" |
25 | INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST}" | 25 | INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST}" |
26 | |||
27 | INIT_MANAGER ??= "none" | ||
28 | require conf/distro/include/init-manager-${INIT_MANAGER}.inc | ||
diff --git a/meta/conf/distro/include/init-manager-mdev-busybox.inc b/meta/conf/distro/include/init-manager-mdev-busybox.inc new file mode 100644 index 0000000000..4e3be14a82 --- /dev/null +++ b/meta/conf/distro/include/init-manager-mdev-busybox.inc | |||
@@ -0,0 +1,7 @@ | |||
1 | # enable mdev/busybox for init | ||
2 | DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " systemd sysvinit" | ||
3 | VIRTUAL-RUNTIME_dev_manager ??= "busybox-mdev" | ||
4 | VIRTUAL-RUNTIME_init_manager ??= "busybox" | ||
5 | VIRTUAL-RUNTIME_initscripts ??= "initscripts" | ||
6 | VIRTUAL-RUNTIME_keymaps ??= "keymaps" | ||
7 | VIRTUAL-RUNTIME_login_manager ??= "busybox" | ||
diff --git a/meta/conf/distro/include/init-manager-none.inc b/meta/conf/distro/include/init-manager-none.inc new file mode 100644 index 0000000000..bbedf898f7 --- /dev/null +++ b/meta/conf/distro/include/init-manager-none.inc | |||
@@ -0,0 +1,3 @@ | |||
1 | VIRTUAL-RUNTIME_init_manager ??= "sysvinit" | ||
2 | VIRTUAL-RUNTIME_initscripts ??= "initscripts" | ||
3 | VIRTUAL-RUNTIME_login_manager ??= "busybox" | ||
diff --git a/meta/conf/distro/include/init-manager-systemd.inc b/meta/conf/distro/include/init-manager-systemd.inc new file mode 100644 index 0000000000..1558b85250 --- /dev/null +++ b/meta/conf/distro/include/init-manager-systemd.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | # Use systemd for system initialization | ||
2 | DISTRO_FEATURES_append = " systemd" | ||
3 | DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " sysvinit" | ||
4 | VIRTUAL-RUNTIME_init_manager ??= "systemd" | ||
5 | VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units" | ||
6 | VIRTUAL-RUNTIME_login_manager ??= "shadow-base" | ||
diff --git a/meta/conf/distro/include/init-manager-sysvinit.inc b/meta/conf/distro/include/init-manager-sysvinit.inc new file mode 100644 index 0000000000..6b662d60bb --- /dev/null +++ b/meta/conf/distro/include/init-manager-sysvinit.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | # Use sysvinit for system initialization | ||
2 | DISTRO_FEATURES_append = " sysvinit" | ||
3 | DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " systemd" | ||
4 | VIRTUAL-RUNTIME_init_manager ??= "sysvinit" | ||
5 | VIRTUAL-RUNTIME_initscripts ??= "initscripts" | ||
6 | VIRTUAL-RUNTIME_login_manager ??= "busybox" | ||