From f5b7b4a5c5ffcd51509c3ed57dfb08fdce6cf01c Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Mon, 21 Sep 2020 11:14:41 -0400 Subject: meta-agl-bsp: Enable overlayfs Add kernel configuration fragment to enable overlayfs. The initial planned use is for enabling generating coverage results on target, but it will also be useful for container runtimes. Bug-AGL: SPEC-3589 Signed-off-by: Scott Murray Change-Id: I4dd5ddd2da52eac5b273b01be51339e03786b845 Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25336 Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account Reviewed-by: Jan-Simon Moeller --- meta-agl-bsp/recipes-kernel/linux/linux-agl.inc | 3 +++ meta-agl-bsp/recipes-kernel/linux/linux/overlayfs.cfg | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 meta-agl-bsp/recipes-kernel/linux/linux/overlayfs.cfg diff --git a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc index 9c3976aa7..c667b9c85 100644 --- a/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc +++ b/meta-agl-bsp/recipes-kernel/linux/linux-agl.inc @@ -36,6 +36,7 @@ SRC_URI_append = "\ file://usbmodem.cfg \ file://i2c-led.cfg \ file://nfc.cfg \ + file://overlayfs.cfg \ " SRC_URI_append = " ${@bb.utils.contains('AGL_XEN_GUEST_WANTED','1','file://xen_domu.cfg','',d)}" @@ -58,6 +59,8 @@ KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/usbaudio.cfg" KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/i2c-led.cfg" # Enable NFC devices KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/nfc.cfg" +# Enable overlayfs filesystem support +KERNEL_CONFIG_FRAGMENTS_append = " ${WORKDIR}/overlayfs.cfg" # Enable XEN support of the guest KERNEL_CONFIG_FRAGMENTS_append = " ${@bb.utils.contains('AGL_XEN_GUEST_WANTED','1','${WORKDIR}/xen_domu.cfg','',d)}" diff --git a/meta-agl-bsp/recipes-kernel/linux/linux/overlayfs.cfg b/meta-agl-bsp/recipes-kernel/linux/linux/overlayfs.cfg new file mode 100644 index 000000000..025118ed6 --- /dev/null +++ b/meta-agl-bsp/recipes-kernel/linux/linux/overlayfs.cfg @@ -0,0 +1,7 @@ +CONFIG_OVERLAY_FS=y +CONFIG_OVERLAY_FS_REDIRECT_DIR=y +CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW=n +CONFIG_OVERLAY_FS_INDEX=y +CONFIG_OVERLAY_FS_NFS_EXPORT=n +CONFIG_OVERLAY_FS_XINO_AUTO=y +CONFIG_OVERLAY_FS_METACOPY=y -- cgit 1.2.3-korg