From 62286efb0c62102ed1731e52dc9495bb80d41a10 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 6 May 2023 12:18:39 +0530 Subject: livevm: add support for qcow2 and raw images --- .local/bin/livevm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.local/bin') diff --git a/.local/bin/livevm b/.local/bin/livevm index e83f5c6..c1b599e 100755 --- a/.local/bin/livevm +++ b/.local/bin/livevm @@ -18,7 +18,7 @@ then shift fi -while getopts "wehc:d:" f +while getopts "wehc:d:q:r:" f do case "$f" in w) @@ -40,6 +40,12 @@ do d) cmd="${cmd} -drive file=${OPTARG}" ;; + q) + cmd="${cmd} -drive file=${OPTARG}" + ;; + r) + cmd="${cmd} -drive format=raw,file=${OPTARG}" + ;; h) cat <<- EOF Usage: ${0##*/} command @@ -49,6 +55,8 @@ do -w run wangblows -c [cdrom] -d [drive] + -q [img.qcow2] + -r [img.raw] EOF exit -- cgit v1.2.3