From aa3bc0ae3ad093a60ccf64d1379ad5379ad43e1f Mon Sep 17 00:00:00 2001 From: Nicolas MORIN Date: Wed, 7 Feb 2024 12:05:00 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20code=20g=C3=A9rant=20l'option=20is?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qemu-adm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qemu-adm b/qemu-adm index ebfa5d7..5a90713 100755 --- a/qemu-adm +++ b/qemu-adm @@ -50,6 +50,9 @@ nouvMV() fi echo "-drive file=${1},if=virtio \\" >> ${chemin_mv} ;; + "iso") + echo "--cdrom ${1} \\" >> ${chemin_mv} + ;; esac } @@ -190,7 +193,6 @@ creeMV() die "La capacité du disque n'est pas renseigné.\nSyntaxe attendue : |(|):(raw|qcow2):)." 5 fi - commandes_a_executer+=( "nouvMV disque ${disque_nom} ${disque_format} ${disque_capacite}") ;; "-i") # Iso @@ -199,6 +201,7 @@ creeMV() presenceParametre "$#" "$1" echo "iso parametre=${parametre}" # Debogage shift + commandes_a_executer+=( "nouvMV iso ${1}") ;; '-r') # Reseau echo "reseau" # Debogage