diff options
author | sinanmohd <sinan@firemail.cc> | 2023-05-06 12:18:39 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-05-06 12:18:39 +0530 |
commit | 62286efb0c62102ed1731e52dc9495bb80d41a10 (patch) | |
tree | 2d32e1080b8d2b5be67f079fe103f8ed84480404 /.local/bin | |
parent | fdd9bae3ee6c08e58b410e5514597131188d5936 (diff) |
livevm: add support for qcow2 and raw images
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/livevm | 10 |
1 files changed, 9 insertions, 1 deletions
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 |