diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2022-07-07 16:35:36 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2022-07-07 16:35:36 +0200 |
commit | 922708b036befa7cd07887a5578421004ee60618 (patch) | |
tree | 6fb2bb2f4ee6473a820dcb9b1ea5e563fdf5332e | |
parent | 5619bd965958c30cebabccea0d78cc0cff6a8ae6 (diff) | |
download | imagefish-922708b036befa7cd07887a5578421004ee60618.tar.gz |
boot in uefi mode for *efi* kickstart files
-rwxr-xr-x | scripts/run-kickstart-install.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/run-kickstart-install.sh b/scripts/run-kickstart-install.sh index 2836aa4..50a4830 100755 --- a/scripts/run-kickstart-install.sh +++ b/scripts/run-kickstart-install.sh @@ -9,6 +9,15 @@ size="${4-4}" # go! name="$(basename $disk .qcow2)" +case "$kick" in + *efi*) + extra="--boot uefi" + ;; + *) + extra="" + ;; +esac + rm -f "$disk" exec virt-install \ --virt-type kvm \ @@ -22,4 +31,5 @@ exec virt-install \ --disk "bus=scsi,format=qcow2,sparse=yes,size=${size},path=${disk}" \ --initrd-inject "${kick}" \ --extra-args "console=ttyS0 inst.ks=file:/${kick##*/}" \ - --location "$repo" + --location "$repo" \ + $extra |