rebuild or recover /boot/loader.conf
-
I wanted to add a variable in the loader.conf, but I accidently overwritten the existing file with an empty one. Is it possible to recover from the boot log the previous values or retrigger whatever process that previously set the file. I have a fully installed instance of pfSense. The change was done from the web interface and I have a previous backup of config.xml.
-
Found the following for 2.5.0
kern.cam.boot_delay=10000 kern.ipc.nmbclusters="1000000" kern.ipc.nmbjumbop="524288" kern.ipc.nmbjumbo9="524288" kern.geom.label.disk_ident.enable="0" kern.geom.label.gptid.enable="0" zfs_load="YES" autoboot_delay="3" hw.hn.vf_transparent="0" hw.hn.use_if_start="1" legal.intel_ipw.license_ack=1 legal.intel_iwi.license_ack=1
-
@cezp
If it was me, I'd just reinstall and restore your backup.
That said, if you want to add something to loader.conf, you can create /boot/loader.conf.local and add it there. It will append the variables on boot. -
@provels
Thank you for the tip. All except the last two lines were added by the installer, so I guess I'll leave those as is, the last two I moved to loader.conf.local.I rebooted and everything seems to boot fine :)