Skip to content

Added inst.copy_network to kernel cmdline and config server no-auto-default #2291

Merged
teclator merged 3 commits intomasterfrom
copy_network
Apr 25, 2025
Merged

Added inst.copy_network to kernel cmdline and config server no-auto-default #2291
teclator merged 3 commits intomasterfrom
copy_network

Conversation

@teclator
Copy link
Contributor

@teclator teclator commented Apr 24, 2025

Problem

The network configuration is a crucial part of the installation process. In some cases it is even required to start the installation. The problem is that, in some cases, the network configuration used during the installation could differ to the one wanted in the target system.

It will be nice to be able to configure completely the "picture" of the network after the installation as we started to design in YaST but as a primary step at least would be nice to select if the installation network configuration should be kept or not allowing to disable the copy of the connections completely. Currently that is not possible and the running and persistent configuration are always copied to the target system as well as we probe DHCP over all the ethernet devices even when there is some explicit configuration given.

Solution

We proposed some changes in the current behavior.

First of all, only the persistent configuration will be copied to the target system (default), this copy can be omitted using the inst.copy_network=0 kernel cmdline argument although we are considering to define it as an enum allowing none, persistent, all and maybe a comma separated name of connections but just keep it simple by now only supporting 0 or 1.

During the boot process (dracut), if an explicit NetworkManager configuration is given through the 'ip=' kernel cmdline option then the running configuration will be copied persistently before switching the rootfs and we will also set the no-auto-default=* to not run DHCP over all the ethernet devices when the installer is started.

Testing

  • Added a new unit test
  • Tested manually

Screenshot From 2025-04-24 12-39-08

teclator added a commit that referenced this pull request Apr 25, 2025
…SLES SAP (#2279)

## Problem

It was agreed to install the NetworkManager config server package for
both products avoiding the ethernet devices probing and automatic
configuration.

- https://bugzilla.suse.com/show_bug.cgi?id=1241224

## Solution

Define the NetworkManager-config-server package as mandatory for SLES-16
and SLES_SAP-16. (see also #2291)
@teclator teclator changed the title Copy network Added inst.copy_network to kernel cmdline and config server no-auto-default Apr 25, 2025
@teclator teclator merged commit ad6168a into master Apr 25, 2025
17 checks passed
@teclator teclator deleted the copy_network branch April 25, 2025 14:00
@teclator teclator restored the copy_network branch April 28, 2025 11:35
teclator added a commit that referenced this pull request Apr 29, 2025
…sabled explicitly (#2299)

## Problem

If there is no network configuration specified through the kernel
cmdline then the /run/agama/copy_network is not created and that is
wrong as the network configuration written persistently during
installation will not be copied to the target system.

- related to #2291 


## Solution

Modify the check discarding the copy of the network files if disabled
explicitly (it will check if the **/run/agama/not_copy_network** file
exists).

## Testing

- *Tested manually*
@imobachgs imobachgs mentioned this pull request May 26, 2025
imobachgs added a commit that referenced this pull request May 26, 2025
jlausuch added a commit to jlausuch/os-autoinst-distri-opensuse that referenced this pull request Jun 2, 2025
https://jira.suse.com/browse/AGM-147

A new Agama feature make our interfaces in openQA not to get an IP,
therefore failing in most cases due to not resolving the network.
To be consistent with the previous behavior, we need to add some
new parameters in the boot process.

Related:
- https://trello.com/c/P6oGGmjH/4745-ui-handle-persistent-non-persistent-network-connections
- Added NetworkManager config server as mandatory package for SLES and SLES SAP agama-project/agama#2279
- Added inst.copy_network to kernel cmdline and config server no-auto-default  agama-project/agama#2291
- https://bugzilla.suse.com/show_bug.cgi?id=1241224
fsimorda pushed a commit to fsimorda/os-autoinst-distri-opensuse that referenced this pull request Jun 3, 2025
https://jira.suse.com/browse/AGM-147

A new Agama feature make our interfaces in openQA not to get an IP,
therefore failing in most cases due to not resolving the network.
To be consistent with the previous behavior, we need to add some
new parameters in the boot process.

Related:
- https://trello.com/c/P6oGGmjH/4745-ui-handle-persistent-non-persistent-network-connections
- Added NetworkManager config server as mandatory package for SLES and SLES SAP agama-project/agama#2279
- Added inst.copy_network to kernel cmdline and config server no-auto-default  agama-project/agama#2291
- https://bugzilla.suse.com/show_bug.cgi?id=1241224
@teclator teclator deleted the copy_network branch September 22, 2025 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants