]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Mount all virtiofs mounts in the initrd 2826/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 2 Jul 2024 21:45:00 +0000 (23:45 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 2 Jul 2024 21:52:10 +0000 (23:52 +0200)
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

index 46604559622e92bee3946dc097d3cc70c56f45d4..9d4241cec79b62b4c79cead9629ab022506ea712 100644 (file)
@@ -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: