From 6e8f113beaea482ce7b2a9140535527332a58818 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Tue, 2 Jul 2024 23:45:00 +0200 Subject: [PATCH] Mount all virtiofs mounts in the initrd This allows using these to mount e.g. kernel modules as well before switch-root. If there is no initramfs, the modules will still be loaded in the rootfs. --- mkosi/qemu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi/qemu.py b/mkosi/qemu.py index 466045596..9d4241cec 100644 --- a/mkosi/qemu.py +++ b/mkosi/qemu.py @@ -1048,7 +1048,7 @@ def run_qemu(args: Args, config: Config) -> None: if credentials["fstab.extra"] and not credentials["fstab.extra"][-1] == "\n": credentials["fstab.extra"] += "\n" - credentials["fstab.extra"] += f"{tag} {dst} virtiofs\n" + credentials["fstab.extra"] += f"{tag} {dst} virtiofs x-initrd.mount\n" if config.runtime_build_sources: with finalize_source_mounts(config, ephemeral=False) as mounts: -- 2.47.2