Skip to content

Commit 5916d5e

Browse files
jlebondustymabe
authored andcommitted
install: Don't require the network by default
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
1 parent daca67a commit 5916d5e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/release-notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Major changes:
1010

1111
Minor changes:
1212

13+
- install: Don't require the network by default
14+
1315
Internal changes:
1416

1517
- install: Simplify firstboot-args handling in config file expansion

systemd/coreos-installer.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[Unit]
22
Description=CoreOS Installer
33
Before=coreos-installer.target
4-
After=network-online.target
5-
Wants=network-online.target
4+
After=NetworkManager.service
5+
Wants=NetworkManager.service
66
# Until we retry HTTP requests let's wait here until
77
# systemd-resolved comes up if enabled.
88
# https://github.com/coreos/coreos-installer/issues/283

0 commit comments

Comments
 (0)