Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/brand/bhyve/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,17 @@ def apply_bootnext(v):

try:
bootdisk = z.findattr('bootdisk')
if (bootdiskif := z.findattr('bootdiskif')) is not None:
bootdiskif = bootdiskif.get('value').strip()
Comment thread
hrosenfeld marked this conversation as resolved.
try:
bootdiskif = aliases['diskif'][bootdiskif]
except KeyError:
pass
else:
bootdiskif = opts['diskif']

args.extend([
'-s', '{0}:0,{1},{2}'.format(BOOTDISK_SLOT, opts['diskif'],
'-s', '{0}:0,{1},{2}'.format(BOOTDISK_SLOT, bootdiskif,
diskpath(bootdisk.get('value').strip()))
])
add_bootoption('bootdisk', None, ('pci', f'{BOOTDISK_SLOT}.0'))
Expand Down
11 changes: 11 additions & 0 deletions src/man/bhyve.7
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ A suitable ZFS volume can be created using the
command, for example:
.Pp
.Dl zfs create -V 30G rpool/bootdisk2
.\" bootdiskif
.It Ic bootdiskif Ar type
.Pp
Specifies the type of interface to which the boot disk will be attached.
See the description of the
.Ic diskif
attribute for a list of available interface types.
.Pp
If unset, the value of the
.Ic diskif
attribute will be used.
.\" bootorder
.It Ic bootorder Ar option Ns Oo \&, Ns Ar option Ns \&... Oc
.Pp
Expand Down
Loading