From bfe03e6e01db3b360578262fb34f89c4d3244a71 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 14 Mar 2023 16:55:20 -0400 Subject: [PATCH] Fix erronously dragging in CIDR to IPv4 configuration --- .../ubuntu22.04/initramfs/scripts/casper-bottom/99confluent | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/confluent_osdeploy/ubuntu22.04/initramfs/scripts/casper-bottom/99confluent b/confluent_osdeploy/ubuntu22.04/initramfs/scripts/casper-bottom/99confluent index 94a0c4b2..e066714e 100755 --- a/confluent_osdeploy/ubuntu22.04/initramfs/scripts/casper-bottom/99confluent +++ b/confluent_osdeploy/ubuntu22.04/initramfs/scripts/casper-bottom/99confluent @@ -41,12 +41,11 @@ fi umask $oum ipv4m=$(grep ^ipv4_method $netcfgfile|awk '{print$2}') . /scripts/functions -set -x 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: }