summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/apt.auto-removal.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/apt.auto-removal.sh b/debian/apt.auto-removal.sh
index 8f6fc2efc..741183c41 100644
--- a/debian/apt.auto-removal.sh
+++ b/debian/apt.auto-removal.sh
@@ -17,7 +17,8 @@ set -e
# packages in the database because this runs from a postinst script, and apt
# will overwrite the db when it exits.
-config_file=/etc/apt/apt.conf.d/01autoremove-kernels
+eval $(apt-config shell APT_CONF_D Dir::Etc::parts/d)
+config_file=${APT_CONF_D}/01autoremove-kernels
installed_version="$1"
running_version="$(uname -r)"