]> git.proxmox.com Git - qemu-server.git/commitdiff
fix #1267: move args to the end of qemu commandline
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 6 Dec 2018 09:17:25 +0000 (10:17 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 11 Dec 2018 08:56:50 +0000 (09:56 +0100)
there is nothing that should be really affected by this, but
even then, this option is only for experts and people using this
should know what they are doing

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm

index 1e9dec61ed6ddc284d23f507a2aa4bd29e23847f..94824bd46bc04552b7894d62b0f9910473f7a302 100644 (file)
@@ -3883,12 +3883,6 @@ sub config_to_command {
        }
     }
 
-    # add custom args
-    if ($conf->{args}) {
-       my $aa = PVE::Tools::split_args($conf->{args});
-       push @$cmd, @$aa;
-    }
-
     push @$cmd, @$devices;
     push @$cmd, '-rtc', join(',', @$rtcFlags)
        if scalar(@$rtcFlags);
@@ -3897,6 +3891,12 @@ sub config_to_command {
     push @$cmd, '-global', join(',', @$globalFlags)
        if scalar(@$globalFlags);
 
+    # add custom args
+    if ($conf->{args}) {
+       my $aa = PVE::Tools::split_args($conf->{args});
+       push @$cmd, @$aa;
+    }
+
     return wantarray ? ($cmd, $vollist, $spice_port) : $cmd;
 }