From bc61485ad801ee2f8f2ce0bf91ba975cba26bc4c Mon Sep 17 00:00:00 2001 From: Scott Blake Date: Tue, 26 Nov 2019 10:33:50 -0500 Subject: [PATCH] Add disk_type parameter Adds the ability to modify the disk type from the CLI instead of only exposing the value with a template. --- pkgroot/usr/local/vfuse/bin/vfuse | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgroot/usr/local/vfuse/bin/vfuse b/pkgroot/usr/local/vfuse/bin/vfuse index 3e1b546..3049175 100755 --- a/pkgroot/usr/local/vfuse/bin/vfuse +++ b/pkgroot/usr/local/vfuse/bin/vfuse @@ -747,6 +747,9 @@ def main(): parser.add_argument( "-e", "--esx", help="Create pre-allocated ESX-type VMDK", action="store_true" ) + parser.add_argument( + "--disk_type", help="Set the VMDK options", type=int + ) parser.add_argument("-p", "--packer", help="Populate a packer template") parser.add_argument("-d", help="Path to CD/DVD ISO path ", default=None) parser.add_argument("--hw-model", help="Custom hardware model", default=None) @@ -927,6 +930,9 @@ def main(): if args.esx: disk_type = 4 + if args.disk_type: + disk_type = args.disk_type + if args.packer: packer_template = args.packer