mirror of https://github.com/docker/docs.git
Remove /etc/apt/apt.conf.d/01autoremove-kernels in mkimage/debootstrap
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. Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
This commit is contained in:
parent
b98c352e4f
commit
d30d12c102
|
@ -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)
|
# shrink a little, since apt makes us cache-fat (wheezy: ~157.5MB vs ~120MB)
|
||||||
( set -x; chroot "$rootfsDir" apt-get clean )
|
( 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... :)
|
# Ubuntu 10.04 sucks... :)
|
||||||
if strings "$rootfsDir/usr/bin/dpkg" | grep -q unsafe-io; then
|
if strings "$rootfsDir/usr/bin/dpkg" | grep -q unsafe-io; then
|
||||||
# force dpkg not to call sync() after package extraction (speeding up installs)
|
# force dpkg not to call sync() after package extraction (speeding up installs)
|
||||||
|
|
Loading…
Reference in New Issue