Skip to content

Commit b6fce15

Browse files
committedOct 8, 2018
Add ability to configure qemu-img path
1 parent be3c826 commit b6fce15

File tree

1 file changed

+7
-2
lines changed
  • pkgroot/usr/local/vfuse/bin

1 file changed

+7
-2
lines changed
 

‎pkgroot/usr/local/vfuse/bin/vfuse

+7-2
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,11 @@ def main():
687687
parser.add_argument('--stop', help='Stop monitoring of VM')
688688
parser.add_argument('--reset', help='Reset monitored VM')
689689
parser.add_argument('--use-qemu',
690-
help='Use qemu-img intead of the Fusion CLI tools',
691-
action='store_true')
690+
help='Use qemu-img intead of the Fusion CLI tools [/path/to/qemu-img]',
691+
default=False,
692+
const='/usr/local/bin/qemu-img',
693+
nargs='?',
694+
action='store')
692695
parser.add_argument('--recovery',
693696
help='Boot into Recovery HD',
694697
action='store_true')
@@ -898,6 +901,8 @@ def main():
898901

899902
if args.use_qemu:
900903
use_qemu = True
904+
if os.path.exists(args.use_qemu):
905+
qemu_path = args.use_qemu
901906

902907
if args.recovery:
903908
recovery = True

0 commit comments

Comments
 (0)
Please sign in to comment.