/boot/loader.conf keeps resetting on every upgrade
-
The /boot/loader.conf keeps resetting to defaults during every upgrade.
I have a Watchguard Firebox X700e running with 512MB RAM and a 2GB CompactFlash using the 32-bit i386 pfSense 1GB embedded serial image.
Ever since 2.2 or higher I had to use the following options in the /boot/loader.conf or it will fail to boot:
hint.ata.0.mode=PIO4 kern.cam.ada.write_cache=0 hw.msk.msi_disable=1
Is there a way where I don't have to constantly set these parameters after every upgrade?
-
Place your customizations in /boot/loader.conf.local instead. This file is not overwritten.
-
Place your customizations in /boot/loader.conf.local instead. This file is not overwritten.
Ok. Thank you. :)
-
I don't seem to have an /boot/loader.conf.local….
I can only find /boot/defaults/loader.conf , /boot/loader.conf and /boot/loader.conf_wrap.
I need to add console=comconsole into a VGA nanoBSD install on a Lanner FW7520A
Do i need to generate this .local file and place it in boot directory?
I assume i would need to set disk to RW to edit on Nano?
I realize this might not survive upgrades but would like this setting to survive reboots
-
If it doesn't exist, you can create it. The format is the same as loader.conf
@Phishfry:
I don't seem to have an /boot/loader.conf.local….
-
That did the trick. So i generated a loader.conf.local file on Windows notepad. Then i installed package "File Manager". Set nanoBSD to RW, then uploaded file via File Manager and then rebooted. All worked, no boot intervention required.
Thanks -
@Phishfry:
So i generated a loader.conf.local file on Windows notepad.
This is a bad idea (TM). Definitely bad if you have more than one line in the file. You can just touch the file via SSH or console and edit it via the GUI
/etc/rc.conf_mount_rw touch /boot/loader.conf.local
-
here the reason for doktornotors "This is a bad idea (TM)."
-
Thanks for the heads-up. I actually copied loader.conf over and edited it.. I thought Notepad unicode saving was good enough. Thanks for the editor tool tip too.
I will have to read up on "touch" -First i have heard of it…
-
Touch updates the modification time on a file. If the file doesn't exist, it creates an empty one.
Copying loader.conf to loader.conf.local and then editing was an as good or better approach.
@Phishfry:
I will have to read up on "touch" -First i have heard of it…