|
|
@ -50,6 +50,9 @@ nouvMV()
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
echo "-drive file=${1},if=virtio \\" >> ${chemin_mv}
|
|
|
|
echo "-drive file=${1},if=virtio \\" >> ${chemin_mv}
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
"iso")
|
|
|
|
|
|
|
|
echo "--cdrom ${1} \\" >> ${chemin_mv}
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -190,7 +193,6 @@ creeMV()
|
|
|
|
die "La capacité du disque n'est pas renseigné.\nSyntaxe attendue : <chemin disque>|(<chemin disque>|<nom disque>):(raw|qcow2):<capacité>)." 5
|
|
|
|
die "La capacité du disque n'est pas renseigné.\nSyntaxe attendue : <chemin disque>|(<chemin disque>|<nom disque>):(raw|qcow2):<capacité>)." 5
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandes_a_executer+=( "nouvMV disque ${disque_nom} ${disque_format} ${disque_capacite}")
|
|
|
|
commandes_a_executer+=( "nouvMV disque ${disque_nom} ${disque_format} ${disque_capacite}")
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
"-i") # Iso
|
|
|
|
"-i") # Iso
|
|
|
@ -199,6 +201,7 @@ creeMV()
|
|
|
|
presenceParametre "$#" "$1"
|
|
|
|
presenceParametre "$#" "$1"
|
|
|
|
echo "iso parametre=${parametre}" # Debogage
|
|
|
|
echo "iso parametre=${parametre}" # Debogage
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
|
|
|
|
commandes_a_executer+=( "nouvMV iso ${1}")
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
'-r') # Reseau
|
|
|
|
'-r') # Reseau
|
|
|
|
echo "reseau" # Debogage
|
|
|
|
echo "reseau" # Debogage
|
|
|
|