Bug #5890
closed"External config loader" not loading config.xml from USB at boot
100%
Description
I was looking at how pfSense can restore configuration if we needed to switch to new hardware.
Looking at "/etc/ecl.php", I can see that the intent is for pfSense to check for "config.xml" on disks present at boot (USB) and to restore the configuration found there.
When booting, the only output you see is:
External config loader 1.0 is now starting...
The function 'get_disk_slices' attempts to discover slices by using "/bin/ls /dev/{$disk}s*"
. However, commit 873c1701 added "escapeshellarg" around this call, so the wildcard is not expanded.
I have a fix (pull request to follow) which uses "glob" for the wildcard expansion, without using external call to "ls".
A test boot (of pfSense embedded inside VM) is now:
External config loader 1.0 is now starting... da0s1 -> found config.xml Backing up old configuration... Restoring [da0s1] /tmp/mnt/cf/config.xml... Cleaning up...
Updated by Anonymous about 9 years ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset e7733965b4047e9410c19ad938d6bb2bf7fe3b9b.
Updated by Anonymous about 9 years ago
Applied in changeset 921e237fdeecdf6a362b33afd1bbdd365aa350c6.
Updated by Chris Buechler almost 9 years ago
- Status changed from Feedback to Resolved
fixed in 2.3.0 and newer