From: Frank Brehm Date: Thu, 2 Nov 2023 10:11:35 +0000 (+0100) Subject: Removing package cloud-init, and performing autoremove of packages in postinstall... X-Git-Tag: 1.8.0^2~22 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=06dffcdc8dded810748ecf3146aa69cf180c6781;p=pixelpark%2Fcreate-terraform.git Removing package cloud-init, and performing autoremove of packages in postinstall-scripts/update-all-packages --- diff --git a/postinstall-scripts/update-all-packages b/postinstall-scripts/update-all-packages index 0025527..1819baa 100755 --- a/postinstall-scripts/update-all-packages +++ b/postinstall-scripts/update-all-packages @@ -192,6 +192,12 @@ ok==1 {print "ip_resolve=4"; ok=0} info "Making cache ..." exec_cmd ${tool} --assumeyes makecache + echo + info "Removing cloud-init ..." + if rpm -qa | grep --quiet --perl-regexp '^cloud-init-\d' ; then + exec_cmd ${tool} --assumeyes erase cloud-init + fi + echo info "Doing upgrade ..." exec_cmd ${tool} --assumeyes upgrade @@ -206,6 +212,10 @@ ok==1 {print "ip_resolve=4"; ok=0} info "Making cache again ..." exec_cmd ${tool} --assumeyes makecache + echo + info "Removing pointless stuff ..." + exec_cmd ${tool} --assumeyes autoremove + } #------------------------------------------------------------------------------