Re: [pfSense] boot/loader.conf.local deleted upon reboot

2018-05-16 Thread Vick Khera
On Wed, May 16, 2018 at 2:03 PM, PiBa  wrote:

> Looks like everything that has the word 'console' in there gets deleted
> from loader.conf.local..
>
> I suppose the 'platform' is not one of these.?:
> if ($specific_platform['name'] == 'RCC-VE' ||
> $specific_platform['name'] == 'RCC' ||
> $specific_platform['name'] == 'SG-2220') {
> $data[] = 'comconsole_port="0x2F8"';
>
>
No, sadly it is not. It is "Super Micro C2758" which has both a physical
COM1 and a virtual COM2, so you can't really force the choice upon someone.

Reading the code, I don't see how all "console*" lines would be removed,
but maybe I misunderstand how the pattern matching is working.
___
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold


Re: [pfSense] boot/loader.conf.local deleted upon reboot

2018-05-16 Thread PiBa
Looks like everything that has the word 'console' in there gets deleted 
from loader.conf.local..


I suppose the 'platform' is not one of these.?:
    if ($specific_platform['name'] == 'RCC-VE' ||
        $specific_platform['name'] == 'RCC' ||
        $specific_platform['name'] == 'SG-2220') {
        $data[] = 'comconsole_port="0x2F8"';


Op 16-5-2018 om 14:48 schreef Vick Khera:

I run pfSense on an official pfSense branded C2758 system. It has a BMC
controller that permits me to use a serial over LAN to COM2. In order to
make the system console connect to COM2, the following line needs to be
added to loader.conf or loader.conf.local:

comconsole_port="0x2F8"

in addition to enabling the serial console via the GUI.

I've run it this way for years with prior versions of pfSense. It seems now
with version 2.4.3 (possibly earlier 2.4.x, not sure) upon reboot the
/boot/loader.conf.local file gets deleted. Thus the symptoms are that you
create the file, reboot and get serial console, but the file gets removed
during the boot. So on your next boot, no console over SoL.

Ideally, there would be a menu on the GUI for serial console to select the
COM port, but I requested that forever ago and it doesn't seem to be
important enough to get implemented.

The /etc/inc/pfsense-utils.inc file appears to try to filter the
loader.conf.local to remove duplicate settings and delete it if it ends up
empty.  This is done by the function load_loader_conf() which seems like it
does the right thing but clearly it is not including the above line and
thus the file gets deleted. It is easily reproduced by just putting that
single line above into the file and rebooting pfSense.
___
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold



___
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold