git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/bin/os-patching-adhoc
diff options
context:
space:
mode:
authormail_redacted_for_web 2026-01-29 11:10:28 +0100
committermail_redacted_for_web 2026-01-29 11:10:28 +0100
commit9672020142d1f03528c573ccb4d9315c8d9d0990 (patch)
treeb7aa58bbc5d0d14a0678ca0da8f9601b1ac0b505 /bin/os-patching-adhoc
parentc6294d51634587de210624821d915dc66996de95 (diff)
downloados-patch-master.tar.bz2
purge-kernels has no "-y" option. Great job again @zypper. Removing this for now.HEADmaster
Diffstat (limited to 'bin/os-patching-adhoc')
-rwxr-xr-xbin/os-patching-adhoc12
1 files changed, 7 insertions, 5 deletions
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....: