From 9672020142d1f03528c573ccb4d9315c8d9d0990 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Thu, 29 Jan 2026 11:10:28 +0100 Subject: purge-kernels has no "-y" option. Great job again @zypper. Removing this for now. --- bin/os-patching-adhoc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/os-patching-adhoc b/bin/os-patching-adhoc index 0e88731..5e62bf4 100755 --- a/bin/os-patching-adhoc +++ b/bin/os-patching-adhoc @@ -213,11 +213,13 @@ case "$ID_LIKE" in footer "...done ($((myend - mystart)) seconds)." header 'Running "purge-kernels"' - # yes, there is no general cleanup actions, there is only "-u" for "rm". But there _is_ purge-kernels. - mystart="$(/usr/bin/date '+%s')" - /usr/bin/zypper "${ZGOPTS[@]}" --no-refresh purge-kernels && printf 'OK.\n' || exit 114 - myend="$(/usr/bin/date '+%s')" - footer "...done ($((myend - mystart)) seconds)." + ## yes, there is no general cleanup actions, there is only "-u" for "rm". But there _is_ purge-kernels. + #mystart="$(/usr/bin/date '+%s')" + #/usr/bin/zypper "${ZGOPTS[@]}" --no-refresh purge-kernels -y && printf 'OK.\n' || exit 114 + #myend="$(/usr/bin/date '+%s')" + #footer "...done ($((myend - mystart)) seconds)." + printf 'As long as SUSE do not puplate a "-y" flag for purge-kernels, this is among the things\n' + printf 'that are infeasible. Continuing without.\n' # zypper: why deliver exit codes WHEN WE CAN TOSS EFFIN STRINGS AT THE CONSOLE ONLY # also... too many people rather tend to localise their systems....: -- cgit v1.2.3