Repository navigation
Conversation
Other configs are renamed to *.yaml.bak, so that they can not override the new config but can still be restored by hand
If a network change is not confirmed within 2 minutes the config will automatically be reverted. Confirmation can be done either by pressing enter in current terminal or logging in from another session
…menu Improve how the status of network interfaces is displayed. Previously we would guess the mode (DHCP or static) from the current addresses, which had problems when an interface was unplugged or disabled (didn't know the difference between unplugged and DHCP without an address). Now we read the config from netplan config or NetworkManager, which should be much more reliable
vidvidex
force-pushed
the
fix-network-scripts
branch
from
October 27, 2026 08:46
a58fc9e to
5c0d633
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes various problems found in the network scripts:
switching between NetworkManager and networkd didn't always work correctly
old .yaml files in
/etc/netplancould break networking completely. These are now always renamed to .yaml.bakrunning "Fix network interface names" (switching to eth0 and wlan0 format) could break static IP settings if settings if these refer to interfaces by name. The script now checks this and uses the MAC address in the configuration.
interfaces without internet access are marked as
optional, which speeds up booting because the system won't wait for them to become online (closes Optional on interfaces without internet access #40)in case of errors in network configuration is is possible to completely lose access. For this reason there is now a timeout of 2 minutes. If new configuration is not confirmed in this time it is automatically rolled back. You can confirm setting by pressing Enter in your current terminal (if you don't lose connection) or by logging in again.