The kernel autoremoval algorithm was written to accomodate for Ubuntu's boot partition sizing, which was written to accomodate 3 kernels - 2 installed ones + a new one being unpacked. It seems that when the algorithm was designed, it was overlooked that it actually kept 3 kernels. LP: #1968154
16 lines
365 B
Bash
Executable File
16 lines
365 B
Bash
Executable File
#! /bin/sh
|
|
set -e
|
|
|
|
if [ "$1" = 'configure' ]; then
|
|
# add unprivileged user for the apt methods
|
|
adduser --force-badname --system --home /nonexistent \
|
|
--no-create-home --quiet _apt || true
|
|
fi
|
|
|
|
if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions -- "$2" le-nl "2.4.5~"; then
|
|
rm -f /etc/apt/apt.conf.d/01autoremove-kernels
|
|
fi
|
|
|
|
|
|
#DEBHELPER#
|