Skip to content

Commit

Permalink
B #-: Fix check when networkd_version is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmontero committed Jan 19, 2024
1 parent 0fd97f3 commit 6154244
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ gen_network_configuration()
# since Ubuntu 22.04 and newer networkd systemd-networkd-wait-online
# started to timeout+fail with NETCFG_TYPE='interfaces' or 'nm'
_networkd_version=$(networkctl --version 2>/dev/null | head -1 | awk '{print $2}')
if [ $_networkd_version -ge 249 ]; then

if [[ $_networkd_version -ge 249 ]]; then
systemctl disable --now systemd-networkd-wait-online.service
fi

Expand Down

0 comments on commit 6154244

Please sign in to comment.