summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2012-11-03 00:39:19 +0100
committerSteve Langasek <steve.langasek@canonical.com>2012-11-03 00:39:19 +0100
commit39a07ec8f2c612a5af234c7713571362f7ca90b4 (patch)
tree5a50ba822231be15eb9b63009451124c0ef4ee35 /debian/rules
parentf69b2c3d2984cd4dca485fb05ab84df94067c50d (diff)
* debian/apt.conf.autoremove: don't include linux-image*,
linux-restricted-modules*, and linux-ubuntu-modules* packages in the list to never be autoremoved. * debian/apt.auto-removal.sh, debian/rules, debian/apt.dirs: install new script to /etc/kernel/postinst.d/ which ensures we only automatically keep the currently-running kernel, the being-installed kernel, and the newest kernel, so we don't fill /boot up with an unlimited number of kernels. LP: #923876.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 8da5ae790..618c7f8d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -186,6 +186,8 @@ apt: build build-manpages
#
cp debian/apt.conf.autoremove debian/$@/etc/apt/apt.conf.d/01autoremove
cp debian/apt.conf.changelog debian/$@/etc/apt/apt.conf.d/20changelog
+ cp debian/apt.auto-removal.sh debian/$@/etc/kernel/postinst.d/apt-auto-removal
+ chmod 755 debian/$@/etc/kernel/postinst.d/apt-auto-removal
cp share/ubuntu-archive.gpg debian/$@/usr/share/$@
# make rosetta happy and remove pot files in po/ (but leave stuff