From 61e218a15b9ce2d2558daffedab9501df4c54dae Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 7 Sep 2022 16:10:44 +0300 Subject: [PATCH] deb-update.bash: run apt-get autoremove also before apt-get upgrade (kernel space issues?) --- bash/deb-update.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bash/deb-update.bash b/bash/deb-update.bash index bf18899..33ce9b6 100755 --- a/bash/deb-update.bash +++ b/bash/deb-update.bash @@ -19,10 +19,13 @@ if hash apt-get 2>/dev/null; then # Checking for updates or new packages. apt-get -y update + # potentially unsafe first time, so there hopefully is space for new kernels + apt-get "$@" autoremove + # If arguments like -y are passed to the script, they become "$@" apt-get "$@" upgrade --with-new-pkgs - # potentially unsafe + # potentially unsafe, second time after new kernel is installed apt-get "$@" autoremove fi