diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-10-21 12:52:22 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-10-21 12:52:22 +0200 |
commit | ff08154f5d16a48feb6af94737f1e92c26f5bb56 (patch) | |
tree | 3abf35d04913c7a10309dbfbefa448b400cff785 /scripts | |
parent | 083ae4761d81d0c5b1ef371ba484d5837c7803c2 (diff) | |
download | imagefish-ff08154f5d16a48feb6af94737f1e92c26f5bb56.tar.gz |
move kickstart script
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/run-kickstart-install.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/scripts/run-kickstart-install.sh b/scripts/run-kickstart-install.sh new file mode 100755 index 0000000..2836aa4 --- /dev/null +++ b/scripts/run-kickstart-install.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +# args +disk="$1" +repo="$2" +kick="${3-el8.ks}" +size="${4-4}" + +# go! +name="$(basename $disk .qcow2)" + +rm -f "$disk" +exec virt-install \ + --virt-type kvm \ + --os-variant rhel8.0 \ + --arch x86_64 \ + --memory 4096 \ + --nographics \ + --transient \ + --network user \ + --name "virt-install-${name}" \ + --disk "bus=scsi,format=qcow2,sparse=yes,size=${size},path=${disk}" \ + --initrd-inject "${kick}" \ + --extra-args "console=ttyS0 inst.ks=file:/${kick##*/}" \ + --location "$repo" |