]> git.proxmox.com Git - qemu-server.git/commit
add new 'boot' property format and introduce legacy conversion helpers
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 6 Oct 2020 13:32:14 +0000 (15:32 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Oct 2020 10:30:50 +0000 (12:30 +0200)
commit5cfa9f5f7374c95c077e6f45b3943ca6388a7c53
tree72a99818bd75a2b53a9cd085f322bc21f7bf741a
parent3441a023dd335d013349b6bc18aabba8378bc736
add new 'boot' property format and introduce legacy conversion helpers

The format is unused in this commit, but will replace the current
string-based format of the 'boot' property. It is included since the
parameter of bootorder_from_legacy follows it.

Two helper methods are introduced:
* bootorder_from_legacy: Parses the legacy format into a hash closer to
    what the new format represents
* get_default_bootdevices: Encapsulates the legacy default behaviour if
    nothing is specified in the boot order

resolve_first_disk is simplified and gets a new $cdrom parameter to
control the behaviour of excluding CD-ROMs or instead searching for only
them.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
PVE/QemuServer.pm
PVE/QemuServer/Drive.pm