]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Purge cloud-init remains for network-manager
authorReinhard Schmitz <reinhard.schmitz@pixelpark.com>
Wed, 8 Nov 2023 14:37:05 +0000 (15:37 +0100)
committerReinhard Schmitz <reinhard.schmitz@pixelpark.com>
Wed, 8 Nov 2023 14:38:10 +0000 (15:38 +0100)
postinstall-scripts/update-all-packages

index d4a9477c2bc158fe2241fd8fb8bfba7cea00e738..c5444be5f4db84986c87a62b24f1e6a76519bf89 100755 (executable)
@@ -197,6 +197,7 @@ ok==1 {print "ip_resolve=4"; ok=0}
     info "Removing cloud-init ..."
     if rpm -qa | grep --quiet --perl-regexp '^cloud-init-\d' ; then
         exec_cmd ${tool}  --assumeyes erase cloud-init
+        RM -rf /etc/sysconfig/network-scripts/* /etc/sysconfig/network-scripts/.*
     fi
 
     for logfile in /var/log/cloud-init.log /var/log/cloud-init-output.log ; do