Skip to content

Commit dee67d0

Browse files
committed
strip out kernels
1 parent 22938b3 commit dee67d0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

ansible/vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ postgres_major:
1010
# Full version strings for each major version
1111
postgres_release:
1212
postgresorioledb-17: "17.5.1.009-orioledb"
13-
postgres17: "17.4.1.067-rc.5-minimal"
13+
postgres17: "17.4.1.067-rc.6-minimal"
1414
postgres15: "15.8.1.123"
1515

1616
# Non Postgres Extensions

scripts/90-cleanup-qemu.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,20 @@ elif [ -n "$(command -v apt-get)" ]; then
4949
apt remove -y --purge libc6-dev linux-libc-dev libevent-dev libpcre3-dev libsystemd-dev packagekit multipath-tools unattended-upgrades plymouth gnupg open-vm-tools xauth lxd-installer publicsuffix libclang-cpp18 python3-twisted python-babel-localedata libicu74 python3-pygments fonts-dejavu* python3-botocore
5050

5151
# remove old kernels
52-
# CURRENT_KERNEL="$(uname -r | sed 's/-generic//')"
53-
# INSTALLED_KERNELS=$(dpkg -l | awk '{print $2}' | grep -Eo 'linux-(image|headers|modules|tools)-[0-9]+' | sed -E 's/linux-(image|headers|modules|tools)-//' | sort -Vu)
54-
# REMOVE_KERNELS=$(echo "$INSTALLED_KERNELS" | grep -v -e "$CURRENT_KERNEL")
55-
# for VER in $REMOVE_KERNELS; do
56-
# for PREFIX in linux-headers linux-image linux-modules linux-tools; do
57-
# for PKG in $(dpkg -l | awk '{print $2}' | grep "^$PREFIX-$VER"); do
58-
# apt-get purge -y "$PKG"
59-
# done
60-
# done
61-
# done
52+
CURRENT_KERNEL="$(uname -r | sed 's/-generic//')"
53+
INSTALLED_KERNELS=$(dpkg -l | awk '{print $2}' | grep -Eo 'linux-(image|headers|modules|tools)-[0-9]+' | sed -E 's/linux-(image|headers|modules|tools)-//' | sort -Vu)
54+
REMOVE_KERNELS=$(echo "$INSTALLED_KERNELS" | grep -v -e "$CURRENT_KERNEL")
55+
for VER in $REMOVE_KERNELS; do
56+
for PREFIX in linux-headers linux-image linux-modules linux-tools; do
57+
for PKG in $(dpkg -l | awk '{print $2}' | grep "^$PREFIX-$VER"); do
58+
apt-get purge -y "$PKG"
59+
done
60+
done
61+
done
62+
update-grub
6263

6364
apt-get -y autoremove
6465
apt-get -y autoclean
65-
update-grub
6666

6767
apt-get -y update
6868
apt-get -y upgrade

0 commit comments

Comments
 (0)