OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 16.1 Legacy Series »
  • Restore config during install
« previous next »
  • Print
Pages: [1]

Author Topic: Restore config during install  (Read 8831 times)

cbb09

  • Newbie
  • *
  • Posts: 38
  • Karma: 2
    • View Profile
Restore config during install
« on: July 05, 2016, 05:36:32 pm »
Hello,

I was wondering if there's a way to restore a configuration backup file during installation like this one: https://doc.pfsense.org/index.php/Automatically_Restore_During_Install

Many thanks!
-C
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Restore config during install
« Reply #1 on: July 06, 2016, 04:30:55 pm »
Hi C,

We've removed the autoloading a long time ago. Some people have been using USB images that they mount and modify /usr/local/etc/config.xml accordingly before installation. You can also build your own images with prebuilt sets and change the config.xml from the build system. It takes just a few seconds (in a set up build host running FreeBSD) to produce a custom image with those.

Others have asked to implement unattended installations, which would probably be the ultimate goal, but we never made it out of the concept phase, mostly because having something work in unattended mode requires a different images to be released.

Open for ideas. :)


Cheers,
Franco
Logged

cbb09

  • Newbie
  • *
  • Posts: 38
  • Karma: 2
    • View Profile
Re: Restore config during install
« Reply #2 on: July 08, 2016, 05:25:57 am »
Thank you for the quick response
Logged

cbb09

  • Newbie
  • *
  • Posts: 38
  • Karma: 2
    • View Profile
Re: Restore config during install
« Reply #3 on: July 10, 2016, 04:04:47 am »
Quote from: franco on July 06, 2016, 04:30:55 pm
Some people have been using USB images that they mount and modify /usr/local/etc/config.xml accordingly before installation.

Hi Franco, I've tried to mount the usb drive after dd'ing the OPNsense img, but it only mounts the 26MB boot partition (on linux and OS X) and I cannot figure out how to mount the main partition. Any thoughts?

Thanks!
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13929
  • Karma: 1208
    • View Profile
Re: Restore config during install
« Reply #4 on: July 11, 2016, 11:23:43 am »
This only works on FreeBSD, as it's a native file system.
Logged

bartjsmit

  • Hero Member
  • *****
  • Posts: 1595
  • Karma: 167
    • View Profile
Re: Restore config during install
« Reply #5 on: July 11, 2016, 11:33:34 am »
Have you tried this from a Linux host?

   sudo modprobe ufs
   sudo mount -t ufs -o ufstype=ufs2 /dev/sdxx /mnt

also try without -o ufstype=ufs2

Bart...

Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 16.1 Legacy Series »
  • Restore config during install
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2