Skip to content

Commit 0845a28

Browse files
committed
preset: override networkd in desktop preset
In the desktop profile network-manager manages all interfaces, and networkd manages none, so systemd-networkd-wait-online.service will timeout and fail as no interfaces are available for networkd, breaking units waiting for network-online.target. Add a higher priority preset for the desktop profile and disable networkd by default.
1 parent 1efc195 commit 0845a28

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

mkosi.extra/usr/lib/systemd/system-preset/10-particleos.preset

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# SPDX-License-Identifier: LGPL-2.1-or-later
22

33
# Make sure we have networking available.
4+
# Note that this gets overridden in the desktop preset as networkd
5+
# has no interfaces to manage and so this will fail on boot
6+
# and block other units waiting on network-online.target
47
enable systemd-networkd.service
58
enable systemd-networkd.socket
69
enable systemd-networkd-varlink.socket
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Given network-manager is enabled in desktop builds and
2+
# takes over the interfaces, networkd-wait-online will be
3+
# stuck and fail, breaking units waiting on the network
4+
# on boot, as networkd manages no interface
5+
disable systemd-networkd.service
6+
disable systemd-networkd.socket
7+
disable systemd-networkd-varlink.socket
8+
disable systemd-networkd-wait-online.service

0 commit comments

Comments
 (0)