Skip to content
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

network: start network-online.target if network is needed #6192

Draft
wants to merge 2 commits into
base: rhel-10
Choose a base branch
from

Conversation

rvykydal
Copy link
Contributor

Activation of the micro-dnsconfd and unbound services depend on it (are wanted by the target).

This is rather dirty solution forced by the way anaconda currently signals to dracut that it needs network. (Starting the target multiple times as it can happen if several boot options require networing should not matter though).

One improvement would be have a script hooked that would check the /tmp/net.ifaces just once at the right time.

Proper solution would probably involve anaconda service wanting the target in case the installation requires network. This is logic the service would need to implement (the service start conditions) is now scattered among the parse-anaconda-* hooks creating the /tmp/net.ifaces in the set_neednet function. Migrating to the service This has high potential to break some use cases though, so it should be checked upstream first.

Activation of the micro-dnsconfd and unbound services depend on it (are
wanted by the target).

This is rather dirty solution forced by the way anaconda currently
signals to dracut that it needs network. (Starting the target multiple
times as it can happen if several boot options require networing should
not matter though).

One improvement would be have a script hooked that would check the
/tmp/net.ifaces just once at the right time.

Proper solution would probably involve anaconda service wanting the
target in case the installation requires network. This is logic the
service would need to implement (the service start conditions) is now
scattered among the parse-anaconda-* hooks creating the /tmp/net.ifaces
in the set_neednet function.  Migrating to the service This has high
potential to break some use cases though, so it should be checked
upstream first.
@rvykydal
Copy link
Contributor Author

/kickstart-test --testtype smoke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant