From e6f3efb910ad5c9b32c300ad257adcc2571c2cb0 Mon Sep 17 00:00:00 2001 From: Nicolas MORIN Date: Fri, 5 Jan 2024 12:36:10 +0100 Subject: [PATCH] Ajout du support OVMF --- qemu-adm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qemu-adm b/qemu-adm index 9f7bbbd..9dd9c0f 100755 --- a/qemu-adm +++ b/qemu-adm @@ -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