Skip to content

Conversation

@jlebon
Copy link
Member

@jlebon jlebon commented Nov 6, 2023

The Wants=network-online.target predates the osmet work which enabled
the now default fully offline install flow.

It also predates the addition of fetch retries. So even in an online
flow, now that we retry HTTP requests indefinitely, we don't really
need this.

Let's follow best practices and stop pulling in network-online.target.

We still need to keep pulling in NetworkManager.service
though. It's enabled by default in multi-user.target but not
coreos-installer-post.target (which is what we boot to in an automated
install).

NetworkManager is capable of handling offline environments just fine and
won't block the install just because a connection isn't available (yet
or ever).

Related: coreos/fedora-coreos-config#1088
Related: #565 (comment)
Related: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
Closes: https://github.com/coreos/coreos-installer/issues/1334

@jlebon
Copy link
Member Author

jlebon commented Nov 6, 2023

Still need to test this. CI tests the online flow, but it'd be good to also sanity-check that DNS lookup failures are also caught by the retry logic.

@jlebon jlebon force-pushed the pr/no-network branch 2 times, most recently from 2059aa7 to e6bc574 Compare November 9, 2023 17:24
@jlebon jlebon force-pushed the pr/no-network branch 3 times, most recently from 15b9d3a to 7202894 Compare December 17, 2024 13:54
The `Wants=network-online.target` predates the osmet work which enabled
the now default fully offline install flow.

It also predates the addition of fetch retries. So even in an online
flow, now that we retry HTTP requests indefinitely, we don't really
need this.

Let's follow best practices and stop pulling in `network-online.target`.

We still need to keep pulling in `NetworkManager.service`
though. It's enabled by default in `multi-user.target` but not
`coreos-installer-post.target` (which is what we boot to in an automated
install).

NetworkManager is capable of handling offline environments just fine and
won't block the install just because a connection isn't available (yet
or ever).

Related: coreos/fedora-coreos-config#1088
Related: coreos#565 (comment)
Related: https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/
Closes: https://github.com/coreos/coreos-installer/issues/1334
We don't need this anymore now that we do retry HTTP fetches.
@dustymabe
Copy link
Member

Still need to test this. CI tests the online flow, but it'd be good to also sanity-check that DNS lookup failures are also caught by the retry logic.

I've put this through a few different tests here locally. Let's get this in.

@dustymabe dustymabe marked this pull request as ready for review October 30, 2025 20:43
@dustymabe dustymabe requested a review from yasminvalim October 30, 2025 20:43
Copy link
Contributor

@yasminvalim yasminvalim left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for working on this! :)

@dustymabe dustymabe merged commit ade07af into coreos:main Oct 31, 2025
15 checks passed
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.

3 participants