Skip to content

Commit

Permalink
Break between systemd unit sections
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Rivera <[email protected]>
  • Loading branch information
stefanor committed Feb 12, 2024
1 parent d4937ff commit c7e3d8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions distrobuilder/lxc.generator
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ fix_nm_link_state() {
Description=Turn off network device
Before=NetworkManager.service
Before=systemd-networkd.service
[Service]
# do not turn off if there is a default route to 169.254.0.1, i.e. the device is a routed nic
ExecCondition=/bin/sh -c '! /usr/bin/grep -qs 00000000.0100FEA9 /proc/net/route'
ExecStart=-${ip_path} link set $1 down
Type=oneshot
RemainAfterExit=true
[Install]
WantedBy=default.target
EOF
Expand Down

0 comments on commit c7e3d8f

Please sign in to comment.