File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
modules.d/35network-manager Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ if getargbool 0 rd.debug -d -y rdinitdebug -d -y rdnetdebug; then
16
16
echo ' [logging]'
17
17
echo ' level=TRACE'
18
18
) > /run/NetworkManager/conf.d/initrd-logging.conf
19
+
20
+ if [ -n " $DRACUT_SYSTEMD " ]; then
21
+ mkdir -p /run/systemd/system/nm-initrd.service.d
22
+ cat << EOF > /run/systemd/system/nm-initrd.service.d/tty-output.conf
23
+ [Service]
24
+ StandardOutput=tty
25
+ EOF
26
+ systemctl --no-block daemon-reload
27
+ fi
19
28
fi
20
29
21
30
nm_generate_connections
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ BusName=org.freedesktop.NetworkManager
17
17
ExecReload =/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0
18
18
ExecStart =/usr/sbin/NetworkManager --debug
19
19
KillMode =process
20
- StandardOutput =tty
20
+ # The following gets changed to StandardOutput=tty by nm-config.sh
21
+ # when debug is enabled.
22
+ StandardOutput =null
21
23
Environment =NM_CONFIG_ENABLE_TAG =initrd
22
24
Restart =on-failure
23
25
ProtectSystem =true
You can’t perform that action at this time.
0 commit comments