Skip to content

Commit

Permalink
Merge pull request #9822 from tianon/01autoremove-kernels
Browse files Browse the repository at this point in the history
Remove /etc/apt/apt.conf.d/01autoremove-kernels in mkimage/debootstrap
  • Loading branch information
Jessie Frazelle committed Dec 30, 2014
2 parents 12fef2d + d30d12c commit ed7a1fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/mkimage/debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ chmod +x "$rootfsDir/usr/sbin/policy-rc.d"
# shrink a little, since apt makes us cache-fat (wheezy: ~157.5MB vs ~120MB)
( set -x; chroot "$rootfsDir" apt-get clean )

# this file is one APT creates to make sure we don't "autoremove" our currently
# in-use kernel, which doesn't really apply to debootstraps/Docker images that
# don't even have kernels installed
rm -f "$rootfsDir/etc/apt/apt.conf.d/01autoremove-kernels"

# Ubuntu 10.04 sucks... :)
if strings "$rootfsDir/usr/bin/dpkg" | grep -q unsafe-io; then
# force dpkg not to call sync() after package extraction (speeding up installs)
Expand Down

0 comments on commit ed7a1fc

Please sign in to comment.