Vars refactor: Simplify initialisation of guest_os
This commit is contained in:
parent
3816fe4028
commit
01fbc2bbef
8
quickemu
8
quickemu
|
|
@ -113,14 +113,8 @@ function vm_boot() {
|
||||||
echo " - BIOS: Legacy"
|
echo " - BIOS: Legacy"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If guest_os is unset, default to "linux"
|
|
||||||
if [ -z "${guest_os}" ]; then
|
|
||||||
guest_os="linux"
|
|
||||||
else
|
|
||||||
# Force to lowercase.
|
# Force to lowercase.
|
||||||
guest_os=$(echo ${guest_os,,})
|
guest_os=$(echo ${guest_os,,})
|
||||||
fi
|
|
||||||
|
|
||||||
# Make any OS specific adjustments
|
# Make any OS specific adjustments
|
||||||
case ${guest_os} in
|
case ${guest_os} in
|
||||||
linux)
|
linux)
|
||||||
|
|
@ -312,7 +306,7 @@ function usage() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Lowercase variables are used in the VM config file only
|
# Lowercase variables are used in the VM config file only
|
||||||
guest_os=""
|
guest_os="linux"
|
||||||
iso=""
|
iso=""
|
||||||
driver_iso=""
|
driver_iso=""
|
||||||
disk_img=""
|
disk_img=""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue