From 6a7fe6382aab710eee2338b061f1f4e4f8793e36 Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Mon, 2 Feb 2026 15:45:50 +0100 Subject: [PATCH] support/testing/tests/package/test_firewalld: use ext2 instead of cpio The CPIO filesystem generated by the test_firewalld test is too large, and doesn't fit as an initramfs in the 256MB of RAM available in the versatilepb machine. This causes a "Initramfs unpacking failed: write error" when booting, and many files being missing from the root filesystem, ultimately causing the test to fail. The test_firewalld test initially started to fail following a systemd update [1][3]: [BRTEST# systemctl is-active firewalld failed But really started to crash at boot following a python 3.14 update [2][4]: Run /init as init process /init: exec: line 15: /sbin/init: not found Also, update TestFirewalldSysVInit to use ext2 instead of cpio. [1] 926e0504d06b5d61d7affb24b94b133b916b71f7 [2] a0a6abc8b193e5bdab5326324d7299c19d5d8c67 Fixes: [3] https://gitlab.com/buildroot.org/buildroot/-/jobs/12944797059 [4] https://gitlab.com/buildroot.org/buildroot/-/jobs/11856840940 Signed-off-by: Romain Naour Signed-off-by: Julien Olivain --- .../testing/tests/package/test_firewalld.py | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/support/testing/tests/package/test_firewalld.py b/support/testing/tests/package/test_firewalld.py index 700337f637..1093873b38 100644 --- a/support/testing/tests/package/test_firewalld.py +++ b/support/testing/tests/package/test_firewalld.py @@ -23,19 +23,21 @@ class TestFirewalldSystemd(infra.basetest.BRTest): BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0" BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_FIREWALLD=y - BR2_TARGET_ROOTFS_CPIO=y + BR2_TARGET_ROOTFS_EXT2=y + BR2_TARGET_ROOTFS_EXT2_SIZE="512M" # BR2_TARGET_ROOTFS_TAR is not set """ def test_run(self): - cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio") + ext2_file = os.path.join(self.builddir, "images", "rootfs.ext2") kernel_file = os.path.join(self.builddir, "images", "zImage") dtb_file = os.path.join(self.builddir, "images", "vexpress-v2p-ca9.dtb") self.emulator.boot(arch="armv7", kernel=kernel_file, - kernel_cmdline=["console=ttyAMA0,115200"], + kernel_cmdline=["console=ttyAMA0,115200", + "rootwait", "root=/dev/mmcblk0"], options=[ - "-initrd", cpio_file, + '-drive', f'file={ext2_file},if=sd,format=raw', "-dtb", dtb_file, "-M", "vexpress-a9" ]) @@ -78,19 +80,21 @@ class TestFirewalldSysVInit(infra.basetest.BRTest): BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0" BR2_PACKAGE_PYTHON3=y BR2_PACKAGE_FIREWALLD=y - BR2_TARGET_ROOTFS_CPIO=y + BR2_TARGET_ROOTFS_EXT2=y + BR2_TARGET_ROOTFS_EXT2_SIZE="512M" # BR2_TARGET_ROOTFS_TAR is not set """ def test_run(self): - cpio_file = os.path.join(self.builddir, "images", "rootfs.cpio") + ext2_file = os.path.join(self.builddir, "images", "rootfs.ext2") kernel_file = os.path.join(self.builddir, "images", "zImage") dtb_file = os.path.join(self.builddir, "images", "vexpress-v2p-ca9.dtb") self.emulator.boot(arch="armv7", kernel=kernel_file, - kernel_cmdline=["console=ttyAMA0,115200"], + kernel_cmdline=["console=ttyAMA0,115200", + "rootwait", "root=/dev/mmcblk0"], options=[ - "-initrd", cpio_file, + '-drive', f'file={ext2_file},if=sd,format=raw', "-dtb", dtb_file, "-M", "vexpress-a9" ])