Skip to content

Conversation

@teclator
Copy link
Contributor

@teclator teclator commented Apr 28, 2025

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.

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

@teclator teclator changed the title Create always /run/agama/copy_network if not disabled Ensure the NetworkManager persistent connections are copied unless disabled explicitly Apr 28, 2025
Copy link
Contributor

@cfconrad cfconrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes looking good to me.

if getargbool 1 inst.copy_network; then
# If there is some explicit network configuration provided through the ip= kernel cmdline option
# then we set the config server configuration diabling the DHCP auto configuration for ethernet
# devices and also copying the configuration persistently (bsc#1241224, bsc#122486, bsc#1239777,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np: do you need persistently here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could replace it by to /etc..

@teclator teclator merged commit d90899a into master Apr 29, 2025
11 checks passed
@teclator teclator deleted the copy_network_fix branch April 29, 2025 10:07
@imobachgs imobachgs mentioned this pull request May 26, 2025
imobachgs added a commit that referenced this pull request May 26, 2025
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.

4 participants