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

    Build install medi with preconfigured config?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    5 Posts 3 Posters 1.2k 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.
    • S
      srynoname
      last edited by

      On the nano images, one can directly integrate the config file in a new installation/media, therefore no classical upgrade needed. How about the full installations?

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        On any installation you can put a new config.xml in place, then reboot, and it comes up with all the settings from the new config, and not the old.
        /boot/loader.conf.local might also contain "hardware"-related settings (console speed, disk subsystem settings, USB boot delay…) that are relevant to the particular hardware. That is preserved across upgrades separately to config.xml
        Is that what you mean?

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • R
          reqlez
          last edited by

          Talking about pre configured images … any way I can make it so that when i hit "Factory Default" the interface assignment doesn't get reset ? I want people to factory default ( and possibly use the reset button on PC Engines APU ) without having to connect via serial and assign interfaces again. This is for a full install ( i can make an image of the install itself if i have to not a problem, then i can just write full image to media )

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            @reqlez:

            Talking about pre configured images … any way I can make it so that when i hit "Factory Default" the interface assignment doesn't get reset ? I want people to factory default ( and possibly use the reset button on PC Engines APU ) without having to connect via serial and assign interfaces again. This is for a full install ( i can make an image of the install itself if i have to not a problem, then i can just write full image to media )

            No way to do that yet.
            But I have thought about how to effectively achieve something similar - to make the factory default find whatever 2 likely-looking interfaces it can and use those for WAN and LAN. The "factory default" config could have a flag in it (or a flag file somewhere in /conf) to indicate that this is the first boot of a virgin factory default system. The system could then pick from some favourite device names in some hard-coded preferred order (em0/em1, re0/re1…) and when devices are found for real on the system the config can be automatically set to use those for WAN and LAN. Then clear the "virgin boot" flag so that process does not happen again!
            That would be a way to have a varied list of hardware configurations that can boot factory default and run without the user being forced to do anything at the console. To me that is attractive at remote sites...

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • S
              srynoname
              last edited by

              I ended up with a new install of 2.2 and importing config. Worked fine and was done in a few minutes.

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