diff options
Diffstat (limited to 'bin/os-patching-adhoc')
| -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....: |
