mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
support/testing: test_systemd.py: add linux fragment to enable CONFIG_BINFMT_MISC
While investigating [1] one units failed due to missing kernel option CONFIG_BINFMT_MISC needed by "proc-sys-fs-binfmt_misc.mount" service. It's because the kernel support autofs4 but not MISC binaries. Since the systemd test infra use the default defconfig (vexpress), we need to provide a linux fragment to enable CONFIG_BINFMT_MISC. [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/454255917 Signed-off-by: Romain Naour <romain.naour@smile.fr> Cc: Yann E. MORIN <yann.morin.1998@free.fr> [yann.morin.1998@free.fr: - move the kernel config with the others in conf/ ] Tested-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
0fd23c3e28
commit
b1e4404c04
2
support/testing/conf/binfmt-misc-kernel-fragment.config
Normal file
2
support/testing/conf/binfmt-misc-kernel-fragment.config
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Needed for binfmt_misc service: "Arbitrary Executable File Formats File System"
|
||||||
|
CONFIG_BINFMT_MISC=y
|
@ -13,10 +13,11 @@ class InitSystemSystemdBase(InitSystemBase):
|
|||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.3"
|
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.11.3"
|
||||||
BR2_LINUX_KERNEL_DEFCONFIG="vexpress"
|
BR2_LINUX_KERNEL_DEFCONFIG="vexpress"
|
||||||
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="{}"
|
||||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="vexpress-v2p-ca9"
|
BR2_LINUX_KERNEL_INTREE_DTS_NAME="vexpress-v2p-ca9"
|
||||||
# BR2_TARGET_ROOTFS_TAR is not set
|
# BR2_TARGET_ROOTFS_TAR is not set
|
||||||
"""
|
""".format(infra.filepath("conf/binfmt-misc-kernel-fragment.config"))
|
||||||
|
|
||||||
def check_init(self):
|
def check_init(self):
|
||||||
super(InitSystemSystemdBase, self).check_init("/lib/systemd/systemd")
|
super(InitSystemSystemdBase, self).check_init("/lib/systemd/systemd")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user