diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-03-09 16:19:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-11 00:08:40 +0000 |
commit | 03e900a74803d306b0a9da1f7d697747b0a773d4 (patch) | |
tree | 5932fbffcb9d90b6dac2c2fdc7f7887ebedda9ee /meta | |
parent | a36fc722968ff528e7feb8be23cfdd727b3c8db1 (diff) | |
download | poky-03e900a74803d306b0a9da1f7d697747b0a773d4.tar.gz |
selftest/overlayfs: enable systemd via INIT_MANAGER
Latest systemd version needs the full set of settings enabled
by that (if also r/o rootfs is enabled), and refuses to boot
otherwise.
(From OE-Core rev: 16f7661000a50e58d512a5d47794c5f8be2c49e6)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/overlayfs.py | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b/meta/lib/oeqa/selftest/cases/overlayfs.py index dfd9f1486d..b4f0663828 100644 --- a/meta/lib/oeqa/selftest/cases/overlayfs.py +++ b/meta/lib/oeqa/selftest/cases/overlayfs.py | |||
@@ -139,10 +139,10 @@ OVERLAYFS_MOUNT_POINT[usr-share-overlay] = "/usr/share/overlay" | |||
139 | 139 | ||
140 | config = """ | 140 | config = """ |
141 | IMAGE_INSTALL:append = " overlayfs-user systemd-machine-units" | 141 | IMAGE_INSTALL:append = " overlayfs-user systemd-machine-units" |
142 | DISTRO_FEATURES:append = " systemd overlayfs" | 142 | DISTRO_FEATURES:append = " overlayfs" |
143 | 143 | ||
144 | # Use systemd as init manager | 144 | # Use systemd as init manager |
145 | VIRTUAL-RUNTIME_init_manager = "systemd" | 145 | INIT_MANAGER = "systemd" |
146 | 146 | ||
147 | # enable overlayfs in the kernel | 147 | # enable overlayfs in the kernel |
148 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" | 148 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" |
@@ -274,10 +274,8 @@ class OverlayFSEtcRunTimeTests(OESelftestTestCase): | |||
274 | """ | 274 | """ |
275 | 275 | ||
276 | configBase = """ | 276 | configBase = """ |
277 | DISTRO_FEATURES:append = " systemd" | ||
278 | |||
279 | # Use systemd as init manager | 277 | # Use systemd as init manager |
280 | VIRTUAL-RUNTIME_init_manager = "systemd" | 278 | INIT_MANAGER = "systemd" |
281 | 279 | ||
282 | # enable overlayfs in the kernel | 280 | # enable overlayfs in the kernel |
283 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" | 281 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" |
@@ -316,10 +314,8 @@ OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p1" | |||
316 | """ | 314 | """ |
317 | 315 | ||
318 | config = """ | 316 | config = """ |
319 | DISTRO_FEATURES:append = " systemd" | ||
320 | |||
321 | # Use systemd as init manager | 317 | # Use systemd as init manager |
322 | VIRTUAL-RUNTIME_init_manager = "systemd" | 318 | INIT_MANAGER = "systemd" |
323 | 319 | ||
324 | # enable overlayfs in the kernel | 320 | # enable overlayfs in the kernel |
325 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" | 321 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" |
@@ -344,10 +340,8 @@ EXTRA_IMAGE_FEATURES += "package-management" | |||
344 | """ | 340 | """ |
345 | 341 | ||
346 | config = """ | 342 | config = """ |
347 | DISTRO_FEATURES:append = " systemd" | ||
348 | |||
349 | # Use systemd as init manager | 343 | # Use systemd as init manager |
350 | VIRTUAL-RUNTIME_init_manager = "systemd" | 344 | INIT_MANAGER = "systemd" |
351 | 345 | ||
352 | # enable overlayfs in the kernel | 346 | # enable overlayfs in the kernel |
353 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" | 347 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" |
@@ -465,10 +459,8 @@ IMAGE_INSTALL:append = " overlayfs-user" | |||
465 | 459 | ||
466 | def get_working_config(self): | 460 | def get_working_config(self): |
467 | return """ | 461 | return """ |
468 | DISTRO_FEATURES:append = " systemd" | ||
469 | |||
470 | # Use systemd as init manager | 462 | # Use systemd as init manager |
471 | VIRTUAL-RUNTIME_init_manager = "systemd" | 463 | INIT_MANAGER = "systemd" |
472 | 464 | ||
473 | # enable overlayfs in the kernel | 465 | # enable overlayfs in the kernel |
474 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" | 466 | KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" |