diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-01-06 20:40:32 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-02-09 03:32:52 +0000 |
| commit | f73b6076fc5c1e1800877a90799dcdde9c4c5102 (patch) | |
| tree | d05a85ce6b46904e88bcced9093198404ec706ea /recipes-kernel | |
| parent | aca7bf0bb64c66e1475738cb2ce016941e29823f (diff) | |
| download | meta-virtualization-f73b6076fc5c1e1800877a90799dcdde9c4c5102.tar.gz | |
vcontainer: add kernel config fragments for container support
Add kernel configuration fragments required for vdkr/vpdmn:
- 9p.cfg: 9P filesystem for virtio-9p file sharing (volume mounts)
- squashfs.cfg: Squashfs and overlayfs for rootfs images
Only applied when "vcontainer" is in DISTRO_FEATURES.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-kernel')
| -rw-r--r-- | recipes-kernel/linux/files/9p.cfg | 5 | ||||
| -rw-r--r-- | recipes-kernel/linux/files/squashfs.cfg | 5 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_%.bbappend | 13 |
3 files changed, 23 insertions, 0 deletions
diff --git a/recipes-kernel/linux/files/9p.cfg b/recipes-kernel/linux/files/9p.cfg new file mode 100644 index 00000000..bd5a74f1 --- /dev/null +++ b/recipes-kernel/linux/files/9p.cfg | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # 9P filesystem support for virtio-9p file sharing | ||
| 2 | CONFIG_NET_9P=y | ||
| 3 | CONFIG_NET_9P_VIRTIO=y | ||
| 4 | CONFIG_9P_FS=y | ||
| 5 | CONFIG_9P_FS_POSIX_ACL=y | ||
diff --git a/recipes-kernel/linux/files/squashfs.cfg b/recipes-kernel/linux/files/squashfs.cfg new file mode 100644 index 00000000..f67fadcd --- /dev/null +++ b/recipes-kernel/linux/files/squashfs.cfg | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | # Squashfs and overlayfs support for vdkr/vpdmn rootfs images | ||
| 2 | CONFIG_SQUASHFS=y | ||
| 3 | CONFIG_SQUASHFS_XZ=y | ||
| 4 | CONFIG_SQUASHFS_ZSTD=y | ||
| 5 | CONFIG_OVERLAY_FS=y | ||
diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend b/recipes-kernel/linux/linux-yocto_%.bbappend new file mode 100644 index 00000000..b6af23a7 --- /dev/null +++ b/recipes-kernel/linux/linux-yocto_%.bbappend | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | # SPDX-FileCopyrightText: Copyright (C) 2025 Bruce Ashfield | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: MIT | ||
| 4 | # | ||
| 5 | # Kernel config fragments for vdkr/vpdmn: | ||
| 6 | # - 9P filesystem for virtio-9p file sharing (volume mounts) | ||
| 7 | # - Squashfs and overlayfs for rootfs images | ||
| 8 | # | ||
| 9 | # Only applied when "vcontainer" is in DISTRO_FEATURES. | ||
| 10 | |||
| 11 | FILESEXTRAPATHS:prepend := "${THISDIR}/files:" | ||
| 12 | |||
| 13 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'vcontainer', 'file://9p.cfg file://squashfs.cfg', '', d)}" | ||
