Update update_kernel_mbp.sh

This commit is contained in:
marcosfad 2022-04-11 00:03:41 +02:00 committed by GitHub
parent b965d3baad
commit 9038829692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ grub2-mkconfig -o /boot/grub2/grub.cfg
### Cleanup
echo >&2 "===]> Info: Cleaning old kernel pkgs (leaving 3 latest versions)... ";
rm -rf ${KERNEL_PATCH_PATH}
dnf autoremove -y
dnf remove -y "$(dnf repoquery --installonly --latest-limit=-3 -q)"
#dnf autoremove -y
#dnf remove -y "$(dnf repoquery --installonly --latest-limit=-3 -q)"
echo >&2 "===]> Info: Kernel update to ${MBP_KERNEL_TAG} finished successfully! ";