refactor: use unattended windows installation by default
Create unattended windows installation iso by default when creating windows vms with --create-config. To disable, pass --disable-unattended https://github.com/quickemu-project/quickemu/pull/1373/files#r1673481239 Co-authored-by: Liam <33645555+lj3954@users.noreply.github.com>
This commit is contained in:
parent
d3a95c2fe5
commit
fc43f861b7
24
quickget
24
quickget
|
@ -3333,18 +3333,16 @@ function create_config() {
|
||||||
*windows-server*|*eval_oemret_x*|*eval_x*) CUSTOM_OS="windows-server";;
|
*windows-server*|*eval_oemret_x*|*eval_x*) CUSTOM_OS="windows-server";;
|
||||||
*windows*|win*)
|
*windows*|win*)
|
||||||
CUSTOM_OS="windows"
|
CUSTOM_OS="windows"
|
||||||
while [ $# -gt 2 ]; do
|
# Older windows 10 ISOs use the year followed by the month rather than the year & half). Match any text for language.
|
||||||
case "${3}" in
|
if [ "${3}" != "--disable-unattended" ] && ( [ "${3}" == "--unattended" ] || grep -E -q 'Win(10|11)_([0-9]{2}H(1|2)|[0-9]{4})_[^.]*?(x64|x32)(v[0-9])?.iso' <<< "${INPUT}" ); then
|
||||||
-unattended|--unattended)
|
echo "Creating unattended Windows installation files. To disable, pass --disable-unattended"
|
||||||
echo "Downloading VirtIO drivers..."
|
echo
|
||||||
web_get "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso" "${VM_PATH}"
|
echo "Downloading VirtIO drivers..."
|
||||||
FIXED_ISO=${VM_PATH}/virtio-win.iso
|
web_get "https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso" "${VM_PATH}"
|
||||||
|
FIXED_ISO=${VM_PATH}/virtio-win.iso
|
||||||
rm -f "${VM_PATH}/unattended.iso"
|
rm -f "${VM_PATH}/unattended.iso"
|
||||||
unattended_windows "${VM_PATH}"
|
unattended_windows "${VM_PATH}"
|
||||||
shift
|
fi
|
||||||
esac
|
|
||||||
done
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*) CUSTOM_OS="linux";;
|
*) CUSTOM_OS="linux";;
|
||||||
|
@ -3397,7 +3395,7 @@ Arguments:
|
||||||
--help : Show this help message
|
--help : Show this help message
|
||||||
------------------------------------ Flags -------------------------------------
|
------------------------------------ Flags -------------------------------------
|
||||||
--create-config:
|
--create-config:
|
||||||
--unattended : Unattended windows installation
|
--disable-unattended : Force quickget not to set up an unattended installation
|
||||||
-------------------------- For testing & development ---------------------------
|
-------------------------- For testing & development ---------------------------
|
||||||
--url [os] [release] [edition] : Show image URL(s)
|
--url [os] [release] [edition] : Show image URL(s)
|
||||||
--check [os] [release] [edition] : Check image URL(s)
|
--check [os] [release] [edition] : Check image URL(s)
|
||||||
|
|
Loading…
Reference in New Issue