Bug #564

Static configs are not saved and reused

Added by Hammel almost 4 years ago. Updated 7 months ago.

Status:ClosedStart date:16 Jan 2017
Priority:UrgentDue date:
Assignee:Hammel% Done:

100%

Category:-
Target version:PiBox - 1.1.0 - Upgrades
Severity:02 - High

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.

Associated revisions

Revision 4a856c8e
Added by Hammel 7 months ago

RM #564: Don't change location of resolv.conf to be in volatile storage or else pnc won't work across reboots.

Revision fcaf5739
Added by Hammel 7 months ago

RM #564: Fix loading of DNS entries to not fail if entries are not NULL.

Revision fcaf5739
Added by Hammel 7 months ago

RM #564: Fix loading of DNS entries to not fail if entries are not NULL.

History

#1 Updated by Hammel over 1 year ago

  • Target version changed from 0.12.0 to 1.1.0 - Upgrades

#2 Updated by Hammel 7 months 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 7 months 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 7 months 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.

#5 Updated by Hammel 7 months ago

  • 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