diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a2a570a..62552eaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * evolinux-base: dump-server-state upstream release 23.11 * evolinux-base: use separate default config file for rsyslog * kvmstats: use .capacity instead of .physical for disk size +* listupgrade : old-kernel-removal.sh upstream release 24.01 * log2mail: move custom config in separate file * lxc: init /etc git repository in lxc container * mysql: disable performance schema for Debian 8 diff --git a/listupgrade/files/old-kernel-autoremoval.sh b/listupgrade/files/old-kernel-autoremoval.sh index ce1c6002..6ad762e1 100644 --- a/listupgrade/files/old-kernel-autoremoval.sh +++ b/listupgrade/files/old-kernel-autoremoval.sh @@ -4,7 +4,7 @@ # fork by reg from /etc/kernel/postinst.d/apt-auto-removal script -VERSION="21.10" +VERSION="24.01" readonly VERSION PROGNAME=$(basename "$0") @@ -13,7 +13,7 @@ show_version() { cat <, +Copyright 2018-2024 Evolix , Gregory Colpart , Romain Dessort , Ludovic Poujol , @@ -105,7 +105,7 @@ main() { echo "BEFORE" dpkg -l | grep linux-image - dpkg --get-selections | tr '\t' ' ' | cut -d" " -f1 | grep '^linux-image-[234]' | grep -v -E "(${kernels})" | xargs --no-run-if-empty ${APT} -o Dir::State::Lists="${listupgrade_state_dir}" -y purge + dpkg --get-selections | tr '\t' ' ' | cut -d" " -f1 | grep '^linux-image-[0-9]' | grep -v -E "(${kernels})" | xargs --no-run-if-empty ${APT} -o Dir::State::Lists="${listupgrade_state_dir}" -y purge echo " AFTER"