mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-28 18:02:07 +00:00
update_vm: allow simultaneous setting of boot-order and dev
else this fails if we check 'boot' before the device was put into the config or pending section. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
ad5812d8fb
commit
c9c32c1ba4
@ -1411,7 +1411,7 @@ my $update_vm_api = sub {
|
||||
if ($new_bootcfg->{order}) {
|
||||
my @devs = PVE::Tools::split_list($new_bootcfg->{order});
|
||||
for my $dev (@devs) {
|
||||
my $exists = $conf->{$dev} || $conf->{pending}->{$dev};
|
||||
my $exists = $conf->{$dev} || $conf->{pending}->{$dev} || $param->{$dev};
|
||||
my $deleted = grep {$_ eq $dev} @delete;
|
||||
die "invalid bootorder: device '$dev' does not exist'\n"
|
||||
if !$exists || $deleted;
|
||||
|
Loading…
Reference in New Issue
Block a user