Feature #10556
Change action on 'XML configuration file not found' error
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Configuration Backend
Target version:
Start date:
05/14/2020
Due date:
% Done:
100%
Estimated time:
Release Notes:
Default
Description
After a shutdown/filesystem error I got on boot:
XML configuration file not found. pfSense cannot continue booting.
then system halted
This is not a very useful behavior in this situation,
I think is better to do a factory reset or switch to single-user mode instead of just halting the system
Associated revisions
Do not halt on configuration file not found error. Implements #10556
History
#1
Updated by Jim Pingle 11 months ago
- Category changed from Diagnostics to Configuration Backend
- Target version set to 2.5.0
We already have some code that could handle this, which restores the last good backup when invalid XML is detected. It should be viable, or maybe code a work-alike in sh: source:src/etc/inc/config.lib.inc#L229
#2
Updated by Viktor Gurov 11 months ago
With this PR it goes forward and shows a console menu that allow you to make a factory reset for example:
https://github.com/pfsense/pfsense/pull/4338
#3
Updated by Jim Pingle 11 months ago
- Status changed from New to Pull Request Review
#4
Updated by Renato Botelho 10 months ago
- Status changed from Pull Request Review to Feedback
- Assignee set to Renato Botelho
- % Done changed from 0 to 100
PR has been merged. Thanks!
#5
Updated by Steve Beaver 6 months ago
- Status changed from Feedback to Resolved
Do not halt on configuration file not found error. Implements #10556