- Minor
When using the Unraid USB Creator tool to restore from a zip backup, I was required to re-enter network information (IP address, netmask, etc.). Upon inspecting the resulting network.cfg on the new USB key, I found that the values I entered were appended to the existing values from the backup rather than replacing them.
This caused invalid network configuration such as:
IPADDR="192.168.1.3""192.168.1.3"
NETMASK="255.255.255.0""255.255.255.0"and
DNS_SERVER1="192.168.1.1"
DNS_SERVER1="192.168.1.1"
As a result, the system did not receive a valid IP address on boot, and I had to manually correct the network.cfg file.
Steps to Reproduce:
Use the Unraid USB Creator tool.
Select the "custom" option to restore from zip backup
Provide custom static network configuration.
Flash the new USB key and inspect
config/network.cfg.
Expected Result:
Network settings from the backup should either:
Be cleared and replaced by the newly entered settings; or
Be equivalent to the source zip
Actual Result:
Duplicate values were appended within a line and across lines, producing invalid entries in the config file.
Environment:
Unraid Version: 7.1.3
USB Creator Version: 1.0.1
OS: Windows 11
Suggested Fix:
Ensure the USB Creator properly clears or replaces existing configuration values when applying new network settings during the restore-from-backup process.