summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2023-03-09 16:19:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-11 00:08:40 +0000
commit03e900a74803d306b0a9da1f7d697747b0a773d4 (patch)
tree5932fbffcb9d90b6dac2c2fdc7f7887ebedda9ee /meta
parenta36fc722968ff528e7feb8be23cfdd727b3c8db1 (diff)
downloadpoky-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.py20
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 = """
141IMAGE_INSTALL:append = " overlayfs-user systemd-machine-units" 141IMAGE_INSTALL:append = " overlayfs-user systemd-machine-units"
142DISTRO_FEATURES:append = " systemd overlayfs" 142DISTRO_FEATURES:append = " overlayfs"
143 143
144# Use systemd as init manager 144# Use systemd as init manager
145VIRTUAL-RUNTIME_init_manager = "systemd" 145INIT_MANAGER = "systemd"
146 146
147# enable overlayfs in the kernel 147# enable overlayfs in the kernel
148KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" 148KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc"
@@ -274,10 +274,8 @@ class OverlayFSEtcRunTimeTests(OESelftestTestCase):
274 """ 274 """
275 275
276 configBase = """ 276 configBase = """
277DISTRO_FEATURES:append = " systemd"
278
279# Use systemd as init manager 277# Use systemd as init manager
280VIRTUAL-RUNTIME_init_manager = "systemd" 278INIT_MANAGER = "systemd"
281 279
282# enable overlayfs in the kernel 280# enable overlayfs in the kernel
283KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" 281KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc"
@@ -316,10 +314,8 @@ OVERLAYFS_ETC_DEVICE = "/dev/mmcblk0p1"
316 """ 314 """
317 315
318 config = """ 316 config = """
319DISTRO_FEATURES:append = " systemd"
320
321# Use systemd as init manager 317# Use systemd as init manager
322VIRTUAL-RUNTIME_init_manager = "systemd" 318INIT_MANAGER = "systemd"
323 319
324# enable overlayfs in the kernel 320# enable overlayfs in the kernel
325KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" 321KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc"
@@ -344,10 +340,8 @@ EXTRA_IMAGE_FEATURES += "package-management"
344 """ 340 """
345 341
346 config = """ 342 config = """
347DISTRO_FEATURES:append = " systemd"
348
349# Use systemd as init manager 343# Use systemd as init manager
350VIRTUAL-RUNTIME_init_manager = "systemd" 344INIT_MANAGER = "systemd"
351 345
352# enable overlayfs in the kernel 346# enable overlayfs in the kernel
353KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" 347KERNEL_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 """
468DISTRO_FEATURES:append = " systemd"
469
470# Use systemd as init manager 462# Use systemd as init manager
471VIRTUAL-RUNTIME_init_manager = "systemd" 463INIT_MANAGER = "systemd"
472 464
473# enable overlayfs in the kernel 465# enable overlayfs in the kernel
474KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc" 466KERNEL_EXTRA_FEATURES:append = " features/overlayfs/overlayfs.scc"