Skip to content

Commit 6154244

Browse files
committed
B #-: Fix check when networkd_version is not defined
1 parent 0fd97f3 commit 6154244

File tree

1 file changed

+2
-1
lines changed
  • context-linux/src/etc/one-context.d/loc-10-network.d

1 file changed

+2
-1
lines changed

context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ gen_network_configuration()
265265
# since Ubuntu 22.04 and newer networkd systemd-networkd-wait-online
266266
# started to timeout+fail with NETCFG_TYPE='interfaces' or 'nm'
267267
_networkd_version=$(networkctl --version 2>/dev/null | head -1 | awk '{print $2}')
268-
if [ $_networkd_version -ge 249 ]; then
268+
269+
if [[ $_networkd_version -ge 249 ]]; then
269270
systemctl disable --now systemd-networkd-wait-online.service
270271
fi
271272

0 commit comments

Comments
 (0)