-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networking: main-config: introduce NETWORKING_STACK
to control network exts; allow "none"; fix typo
#6786
Conversation
This subject reveals that we really need a way to use extensions to conditionally enable extensions. |
- protect against enabling networking exts directly - debug logging - fix typo in ext name
…ork exts; allow "none"; fix typo - `NETWORKING_STACK` can be set to `none` (in config phase, pre-extensions) to not-add any networking extensions - keep defaulting to systemd-networkd if BUILD_MINIMAL and NetworkManager otherwise - fix typo in extension name - add `NETWORKING_STACK` to change-tracking
9c8889d
to
55d71bd
Compare
"network-manager") | ||
display_alert "Adding networking extensions" "net-network-manager, net-chrony" "info" | ||
enable_extension "net-network-manager" | ||
enable_extension "net-chrony" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I specifically separated networking from time synching to make it more modular 😅
@@ -2,6 +2,11 @@ | |||
# Extension to manage network interfaces with NetworkManager + Netplan | |||
# | |||
function extension_prepare_config__install_network_manager() { | |||
# Sanity check | |||
if [[ "${NETWORKING_STACK}" != "network-manager" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sanity check might be couterproductive, since its perfectly valid to use both networking extensions at the same time if one wishes to.
I am totally open for more fixes to this ;) Just keep documentation aligned if design changes. |
The label "needs doc" is pretty good for this. Maybe we need another label "documentation finished" so that we can always find the stuff easily which does not yet have proper documentation. |
networking: main-config: introduce
NETWORKING_STACK
to control network exts; allow "none"; fix typoNETWORKING_STACK
to control network exts; allow "none"; fix typoNETWORKING_STACK
can be set tonone
(in config phase, pre-extensions) to not-add any networking extensionsNETWORKING_STACK
to change-trackingFOR DOCUMENTATION:
New build option
NETWORKING_STACK
:Possible values:
systemd-networkd
: Installs the extension net-systemd-networkd by defaultnetwork-manager
: Installs the extension net-network-manager by defaultnone
or any other: Does not install any networking in the image by default