Ajout du support OVMF

This commit is contained in:
Nicolas MORIN
2024-01-05 12:36:10 +01:00
parent 90c7d9c0a7
commit e6f3efb910
+8 -1
View File
@@ -134,7 +134,14 @@ creeMV()
presenceParametre "$#" "$1"
shift
if [[ ${temoin_b} -ne 1 ]]; then
#commandes_a_executer+=( "nouvMV ${nom_mv}")
case ${1} in
"ovmf"|"OVMF")
if [[ ! $(ls /usr/share/ovmf/OVMF.fd 2>/dev/null) ]]; then
die "Le paquet ovmf n'est pas installé." 6
fi
commandes_a_executer+=( "nouvMV bios $(echo ${1} | tr '[:lower:]' '[:upper:]')")
;;
esac
temoin_b=1
else
die "L'option ${1} a déjà été renseignée." 3