Bug #564
closed
Static configs are not saved and reused
Added by Hammel almost 8 years ago.
Updated over 4 years ago.
Description
If you set the static configs (netmask, gateway, etc.), save and exit the settings are not displayed the next time you enter the UI.
- Target version changed from 0.12.0 to 1.1.0 - Upgrades
- 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.
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.
- % 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.
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
Fixed, both in S00dev (pibox dev platform) and in pnc.
Tested on hardware. Committed and pushed.
Closing issue.
Also available in: Atom
PDF