Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    /boot/loader.conf keeps resetting on every upgrade

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 5 Posters 2.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      Caboosey
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • dennypageD Offline
        dennypage
        last edited by

        Place your customizations in /boot/loader.conf.local instead. This file is not overwritten.

        1 Reply Last reply Reply Quote 0
        • C Offline
          Caboosey
          last edited by

          @dennypage:

          Place your customizations in /boot/loader.conf.local instead. This file is not overwritten.

          Ok. Thank you. :)

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • dennypageD Offline
              dennypage
              last edited by

              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….

              1 Reply Last reply Reply Quote 0
              • ? This user is from outside of this forum
                Guest
                last edited by

                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

                1 Reply Last reply Reply Quote 0
                • D Offline
                  doktornotor Banned
                  last edited by

                  @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
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    heper
                    last edited by

                    here the reason for doktornotors "This is a bad idea (TM)."

                    http://www.editpadpro.com/tricklinebreak.html

                    1 Reply Last reply Reply Quote 0
                    • ? This user is from outside of this forum
                      Guest
                      last edited by

                      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…

                      1 Reply Last reply Reply Quote 0
                      • dennypageD Offline
                        dennypage
                        last edited by

                        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…

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.