Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

Freebsd varient, OPNsense #172

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
17 changes: 17 additions & 0 deletions mbusb.d/opnsense.d/generic64.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
for isofile in $isopath/OPNsense-*-amd64.iso; do
if [ -e "$isofile" ]; then
regexp --set=isoname "$isopath/(.*)" "$isofile"
submenu "$isoname ->" "$isofile" {
iso_path="$2"
loopback loop "$iso_path"
menuentry "OPNsense (x86_64)" {
bootoptions="$iso_path type=mfs_root"
kfreebsd (loop)/boot/kernel/kernel
kfreebsd_module $bootoptions
set kFreeBSD.vfs.root.mountfrom=cd9660:/dev/md0
set kFreeBSD.vfs.root.mountfrom.options=ro
set kFreeBSD.grub.platform=$grub_platform
}
}
fi
done