From: Daan De Meyer Date: Tue, 2 Jul 2024 21:45:00 +0000 (+0200) Subject: Mount all virtiofs mounts in the initrd X-Git-Tag: v24~65^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2826%2Fhead;p=thirdparty%2Fmkosi.git 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. --- 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: