diff --git a/build_library/qemu_template.sh b/build_library/qemu_template.sh index 2c40641f96..45235b68a0 100755 --- a/build_library/qemu_template.sh +++ b/build_library/qemu_template.sh @@ -35,8 +35,8 @@ Options: (see https://github.com/stefanberger/swtpm/wiki/Certificates-created-by-swtpm_setup). -R FILE Set up pflash ro content, e.g., for UEFI (with -W). -W FILE Set up pflash rw content, e.g., for UEFI (with -R). - -K FILE Set kernel for direct boot used to simulate a PXE boot (with -R). - -R FILE Set initrd for direct boot used to simulate a PXE boot (with -K). + -K FILE Set kernel for direct boot used to simulate a PXE boot (with -r). + -r FILE Set initrd for direct boot used to simulate a PXE boot (with -K). -s Safe settings: single simple cpu and no KVM. -h this ;-) @@ -105,7 +105,7 @@ while [ $# -ge 1 ]; do -K|-kernel-file) VM_KERNEL="$2" shift 2 ;; - -R|-initrd-file) + -r|-initrd-file) VM_INITRD="$2" shift 2 ;; -v|-verbose) diff --git a/changelog/bugfixes/2024-08-16-qemu-launcher-initrd-option.md b/changelog/bugfixes/2024-08-16-qemu-launcher-initrd-option.md new file mode 100644 index 0000000000..98f397ec48 --- /dev/null +++ b/changelog/bugfixes/2024-08-16-qemu-launcher-initrd-option.md @@ -0,0 +1 @@ +- Fixed the initrd option in the QEMU launcher script. It was -R, but this was already taken by the read-only pflash option, so use -r instead. ([scripts#2239](https://github.com/flatcar/scripts/pull/2239))