diff options
| author | mail_redacted_for_web | 2026-01-29 11:10:28 +0100 |
|---|---|---|
| committer | mail_redacted_for_web | 2026-01-29 11:10:28 +0100 |
| commit | 9672020142d1f03528c573ccb4d9315c8d9d0990 (patch) | |
| tree | b7aa58bbc5d0d14a0678ca0da8f9601b1ac0b505 | |
| parent | c6294d51634587de210624821d915dc66996de95 (diff) | |
| download | os-patch-master.tar.bz2 | |
| -rwxr-xr-x | bin/os-patching-adhoc | 12 |
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....: |
