1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-06 07:27:28 +00:00

kernel: support loop device in v6.8+ kernels

Set CONFIG_BLK_DEV_WRITE_MOUNTED=y to restore previous kernel behaviour.

Kernel v6.8+ will by default block buffer writes to block devices mounted by filesystems.
This unfortunately is what we need to use mounted loop devices needed by some teams
to build OSIs and as an overlay backing store.

More info on this config item [here](https://cateee.net/lkddb/web-lkddb/BLK_DEV_WRITE_MOUNTED.html)

Fixes: 

Signed-off-by: Simon Kaegi <simon.kaegi@gmail.com>
This commit is contained in:
Simon Kaegi 2025-01-30 16:28:04 -05:00 committed by Fabiano Fidêncio
parent d96e8375c4
commit f5edbfd696
3 changed files with 4 additions and 1 deletions
tools/packaging/kernel

View File

@ -9,6 +9,8 @@ CONFIG_BLK_DEV_THROTTLING=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_BSG=y
CONFIG_BLK_DEV_SD=y
# Required in v6.8+ to use mounted loop devices
CONFIG_BLK_DEV_WRITE_MOUNTED=y
# support initial ramdisk
CONFIG_RD_GZIP=y

View File

@ -38,3 +38,4 @@ CONFIG_PAGE_TABLE_ISOLATION
CONFIG_MITIGATION_PAGE_TABLE_ISOLATION
CONFIG_VFIO_AP
CONFIG_VFIO_MDEV
CONFIG_BLK_DEV_WRITE_MOUNTED

View File

@ -1 +1 @@
146
147