From 06dffcdc8dded810748ecf3146aa69cf180c6781 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 2 Nov 2023 11:11:35 +0100 Subject: [PATCH] Removing package cloud-init, and performing autoremove of packages in postinstall-scripts/update-all-packages --- postinstall-scripts/update-all-packages | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 + } #------------------------------------------------------------------------------ -- 2.39.5