From 61542444c2a74d0e604f17e7a3851d4c1e5f2d79 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Fri, 19 Jan 2024 12:21:07 +0100 Subject: [PATCH] B #-: Fix check when networkd_version is not defined --- context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm b/context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm index 88c88ff0..6ef3c21b 100644 --- a/context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm +++ b/context-linux/src/etc/one-context.d/loc-10-network.d/netcfg-nm @@ -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