Static configs are not saved and reused
|Status:||Closed||Start date:||16 Jan 2017|
|Target version:||PiBox - 1.1.0 - Upgrades|
|Severity:||02 - High|
If you set the static configs (netmask, gateway, etc.), save and exit the settings are not displayed the next time you enter the UI.
RM #564: Don't change location of resolv.conf to be in volatile storage or else pnc won't work across reboots.
#2 Updated by Hammel about 1 year ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
This is not completely accurate. Everything is retrieved except the DNS fields, which are properly set in /etc/resolv.conf when the page is saved. So this is a load/display update problem with DNS only.
#3 Updated by Hammel about 1 year ago
Looked like an easy fix: pncGetNameserver() was testing for !=NULL where it should have been testing for ==NULL. Fix that and the DNS entries should show up.
That is, until I realized that /etc/resolv.conf is being stored in volatile directories, re: /var/run/resolv.conf. This was done on purpose because of an old Busybox problem. Now I need to see if I can fix that by not modifying /etc/resolv.conf in S00dev, then checking were resolv.conf really is and determining what steps should be taken to deal with a disappearing (on each reboot) resolv.conf.
#4 Updated by Hammel about 1 year ago
- % Done changed from 30 to 50
Looks like I could just remove /etc/resolv.conf from S00dev. Both static config and dhcp handling work fine if the file is not there to start with.
Removing lines from S00dev related to resolv.conf and letting the system start without the file.