]> git.ipfire.org Git - thirdparty/libvirt.git/commit
drvbhyve: Use boot-order for grub-bhyve boot device
authorConrad Meyer <cse.cem@gmail.com>
Wed, 12 Nov 2014 22:31:53 +0000 (17:31 -0500)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 13 Nov 2014 14:40:48 +0000 (15:40 +0100)
commitcdbb21bc590fc687b1eb58ab9f3d0c9a9ec14e8f
treebf8fea4fa728bf5ec6e3a7dd843e067a1f167de2
parentc87f268a369eb0f275781abbf446731f6c23f522
drvbhyve: Use boot-order for grub-bhyve boot device

Rather than just picking the first CD (or failing that, HDD) we come
across, if the user has picked a boot device ordering with <boot
order=''>, respect that (and just try to boot the lowest-index device).

Adds two sets of tests to bhyve2xmlargv; 'grub-bootorder' shows that we
pick a user-specified device over the first device in the domain;
'grub-bootorder2' shows that we pick the first (lowest index) device.
docs/drvbhyve.html.in
src/bhyve/bhyve_command.c
tests/bhyvexml2argvdata/bhyvexml2argv-grub-bootorder.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-grub-bootorder.devmap [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-grub-bootorder.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-grub-bootorder.xml [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-grub-bootorder2.args [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-grub-bootorder2.devmap [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-grub-bootorder2.ldargs [new file with mode: 0644]
tests/bhyvexml2argvdata/bhyvexml2argv-grub-bootorder2.xml [new file with mode: 0644]
tests/bhyvexml2argvtest.c