Netinstall wiped wifi configs

Had to make a netinstall and after that all wifi was gone,meaning that Wifi was empty.After installing the wifi package for my device the interfaces and radios were back.But the default values for wifi 1 and 2 are still missing and I wonder if there is a documentation of the standard values in some database.

Now when you have installed the wifi package and get it working, why not try now to reset to default settings again, and see if the thing you ask for comming back.

As @patrikg hinted: each optional package comes with its own default configuration. Which includes wifi-qcom package. But: it's only applied if reset to default configuration is explicitly requested, not when package gets installed.

The behaviour is both confusing and handy:

  • the confusing part is as @TWUCGQK discovered: if unit is cleared of all config (e.g. reset to default config), one would expect config, related to (later installed) optional package, get applied automatically. As it is now, config is simply missing.
  • the handy part is: config, related to optional package, doesn't get purged if that package gets uninstalled, it's just hidden. When that package gets re-installed, previous config is visible again. It's handy if the package got removed only temporarily (or by accident) with intent to re-install it and re-use existing config.

What would be great is ability to reset config only for certain part (e.g. optional package). Which would avoid needing to reset whole config only to apply default config for certain functionality (in ROS v6 such a nuisance was e.g. IPv6, it was optional package back then).

The up side: /system/default-configuration/print will show default config of all installed packages together. So it is possible to apply default config for newly installed optional package even without reseting whole device to defaults. It's not entirely trivial though, one has to filter out the relevant commands from the output of shown command and apply them to running config.

Adding:
you can netinstall using both base package and wifi in one go.
Then all would have been ready from the beginning (provided you used option to apply default config or retain old config).

2 Likes

I understand the reasoning, and I initially agreed,
but then I thought: what if, for example, the "bridge" no longer exists, due to some change to the default configuration, where do you put the newly configured default Wireless/WiFi interfaces?
The configuration would still need to be adjusted...

I think it's fair that the default configuration only applies to the reset.

As for resetting the configuration of just one section, that seems like a good idea...
Perhaps due to a configuration problem with the firewall configuration database file,
you are forced to reinstall the machine,
when a single click would be enough to restore the firewall database
without reinstalling users, certificates, dude, user-manager, etc.