From 95c5253944bdd96cc3d4010200f7d13d69d95700 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 11 Aug 2023 15:01:55 -0400 Subject: [PATCH] Remove CIDR prefix length in ubuntu 20 deployment This produces invalid configuration for subiquity otherwise. --- .../initramfs/custom-installation/hooks/casper-bottom.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh index 91a13ca2..51d5c25c 100755 --- a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh +++ b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/hooks/casper-bottom.sh @@ -44,7 +44,7 @@ if [ "$ipv4m" = "dhcp" ]; then IP=dhcp configure_networking elif [ "$ipv4m" = "static" ]; then - v4addr=$(grep ^ipv4_address: $netcfgfile) + v4addr=$(grep ^ipv4_address: $netcfgfile| sed -e 's!/.*!!') v4addr=${v4addr#ipv4_address: } v4gw=$(grep ^ipv4_gateway: $netcfgfile) v4gw=${v4gw#ipv4_gateway: }