mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-28 14:01:43 +01:00
qemu_template.sh: Allow parameters for kernel and initrd
With the PXE script it is easy to boot different versions from one folder without any copies because the kernel and PXE initrd are always "fresh". Instead of only supporting hardcoded file names, support parameters for the kernel and initrd file to be used.
This commit is contained in:
parent
9d3200bc47
commit
5e7b4b6b3d
@ -35,6 +35,8 @@ Options:
|
|||||||
(see https://github.com/stefanberger/swtpm/wiki/Certificates-created-by-swtpm_setup).
|
(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).
|
-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).
|
-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).
|
||||||
-s Safe settings: single simple cpu and no KVM.
|
-s Safe settings: single simple cpu and no KVM.
|
||||||
-h this ;-)
|
-h this ;-)
|
||||||
|
|
||||||
@ -100,6 +102,12 @@ while [ $# -ge 1 ]; do
|
|||||||
-W|-pflash-rw)
|
-W|-pflash-rw)
|
||||||
VM_PFLASH_RW="$2"
|
VM_PFLASH_RW="$2"
|
||||||
shift 2 ;;
|
shift 2 ;;
|
||||||
|
-K|-kernel-file)
|
||||||
|
VM_KERNEL="$2"
|
||||||
|
shift 2 ;;
|
||||||
|
-R|-initrd-file)
|
||||||
|
VM_INITRD="$2"
|
||||||
|
shift 2 ;;
|
||||||
-v|-verbose)
|
-v|-verbose)
|
||||||
set -x
|
set -x
|
||||||
shift ;;
|
shift ;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user