diff options
| author | Alexander Kanavin <alex@linutronix.de> | 2024-08-27 07:23:22 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-28 09:14:26 +0100 |
| commit | 59d2a17fd52fd33218db09dad861b80e21e276e3 (patch) | |
| tree | 66a1b3dab4bf18db98dc72ed815d89a3a40632dd /meta/lib | |
| parent | 46d4072a97363703a2ba6481ce9f00b24b378126 (diff) | |
| download | poky-59d2a17fd52fd33218db09dad861b80e21e276e3.tar.gz | |
selftest: use INIT_MANAGER to enable systemd instead of custom settings
This is already done in most of selftest; these two were the last
holdouts I could fine.
Hopefully this improves sstate reuse as well.
(From OE-Core rev: 98f2feeea8f54f899e831a13191578b94cde7670)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/imagefeatures.py | 7 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/runtime_test.py | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py index 74811d2c0a..94d01ba116 100644 --- a/meta/lib/oeqa/selftest/cases/imagefeatures.py +++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py | |||
| @@ -250,12 +250,7 @@ USERADD_GID_TABLES += "files/static-group" | |||
| 250 | DISTRO_FEATURES:append = " pam opengl wayland" | 250 | DISTRO_FEATURES:append = " pam opengl wayland" |
| 251 | 251 | ||
| 252 | # Switch to systemd | 252 | # Switch to systemd |
| 253 | DISTRO_FEATURES:append = " systemd usrmerge" | 253 | INIT_MANAGER = "systemd" |
| 254 | VIRTUAL-RUNTIME_init_manager = "systemd" | ||
| 255 | VIRTUAL-RUNTIME_initscripts = "" | ||
| 256 | VIRTUAL-RUNTIME_syslog = "" | ||
| 257 | VIRTUAL-RUNTIME_login_manager = "shadow-base" | ||
| 258 | DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" | ||
| 259 | 254 | ||
| 260 | # Replace busybox | 255 | # Replace busybox |
| 261 | PREFERRED_PROVIDER_virtual/base-utils = "packagegroup-core-base-utils" | 256 | PREFERRED_PROVIDER_virtual/base-utils = "packagegroup-core-base-utils" |
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py index 13aa5f16c9..27090ae5cd 100644 --- a/meta/lib/oeqa/selftest/cases/runtime_test.py +++ b/meta/lib/oeqa/selftest/cases/runtime_test.py | |||
| @@ -310,10 +310,7 @@ class Postinst(OESelftestTestCase): | |||
| 310 | features += 'IMAGE_FEATURES += "package-management empty-root-password"\n' | 310 | features += 'IMAGE_FEATURES += "package-management empty-root-password"\n' |
| 311 | features += 'PACKAGE_CLASSES = "%s"\n' % classes | 311 | features += 'PACKAGE_CLASSES = "%s"\n' % classes |
| 312 | if init_manager == "systemd": | 312 | if init_manager == "systemd": |
| 313 | features += 'DISTRO_FEATURES:append = " systemd usrmerge"\n' | 313 | features += 'INIT_MANAGER = "systemd"\n' |
| 314 | features += 'VIRTUAL-RUNTIME_init_manager = "systemd"\n' | ||
| 315 | features += 'DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"\n' | ||
| 316 | features += 'VIRTUAL-RUNTIME_initscripts = ""\n' | ||
| 317 | self.write_config(features) | 314 | self.write_config(features) |
| 318 | 315 | ||
| 319 | bitbake('core-image-minimal') | 316 | bitbake('core-image-minimal') |
