Skip to content

Commit

Permalink
Add ability to configure qemu-img path
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalMMac committed Oct 8, 2018
1 parent be3c826 commit b6fce15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgroot/usr/local/vfuse/bin/vfuse
Original file line number Diff line number Diff line change
Expand Up @@ -687,8 +687,11 @@ def main():
parser.add_argument('--stop', help='Stop monitoring of VM')
parser.add_argument('--reset', help='Reset monitored VM')
parser.add_argument('--use-qemu',
help='Use qemu-img intead of the Fusion CLI tools',
action='store_true')
help='Use qemu-img intead of the Fusion CLI tools [/path/to/qemu-img]',
default=False,
const='/usr/local/bin/qemu-img',
nargs='?',
action='store')
parser.add_argument('--recovery',
help='Boot into Recovery HD',
action='store_true')
Expand Down Expand Up @@ -898,6 +901,8 @@ def main():

if args.use_qemu:
use_qemu = True
if os.path.exists(args.use_qemu):
qemu_path = args.use_qemu

if args.recovery:
recovery = True
Expand Down

0 comments on commit b6fce15

Please sign in to comment.