Page MenuHomeFreeBSD

sys/kern/subr_firmware: implement firmware_path search path
Needs ReviewPublic

Authored by mcq_disroot.org on Sat, Feb 28, 7:55 PM.

Details

Summary

sys/kern/subr_firmware.c had a hardcoded single directory path for
bin firmware loading. this implements the firmware_path sysctl
and kenv variable

the default path is /boot/firmware. the paths can be configured
through loader.conf or through sysctl kern.firmware_path.

Test Plan

tested on a VM so far and didn't break but didn't do much else but set the kern.firmware_path to another directory and was decently stable.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

can you either use git arc to update this patch, or generate the diff with -U99999 please? I need a little more context to review it.