On 06/02/2014 12:23, Stefan Baur wrote:
I find that the one restored
>via web interface has:
>
>* an extra file /boot.config containing "-D"
>* extra settings in /boot/loader.conf
>
>boot_multicons="YES"
>boot_serial="YES"
>comconsole_speed="115200"
>console="comconsole,vidconsole"
So these parameters are added blindly regardless of whether they were
set before, is that what you're saying? If so, that sounds like a nasty
bug to me.
Not exactly blindly: the boot config is overwritten based on what's in the XML. See setup_serial_port() in /etc/inc/pfsense-utils.inc

                $fd = fopen($boot_config_file,"w");
...
                        if(isset($config['system']['enableserial'])) {
                                fwrite($fd, "-D");
                        }
...
                        if(isset($config['system']['enableserial'])) {
$new_boot_config[] = 'boot_multicons="YES"';
                                $new_boot_config[] = 'boot_serial="YES"';
$new_boot_config[] = 'comconsole_speed="' . $serialspeed . '"'; $new_boot_config[] = 'console="comconsole,vidconsole"';

Regards,

Brian.

_______________________________________________
List mailing list
[email protected]
http://lists.pfsense.org/mailman/listinfo/list

Reply via email to