Remove device nodes from Docker images. (LP: #1645468)

This commit is contained in:
Michael Hudson-Doyle 2018-09-26 13:12:09 +12:00
commit ef1e3425a1
2 changed files with 11 additions and 0 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
livecd-rootfs (2.541) UNRELEASED; urgency=medium
* Remove device nodes from Docker images. (LP: #1645468)
-- Michael Hudson-Doyle <mwhudson@debian.org> Wed, 26 Sep 2018 12:43:23 +1200
livecd-rootfs (2.540) cosmic; urgency=medium
* Ensure /lib/modules exists in root tarballs and sqashfs.

View File

@ -266,6 +266,11 @@ EOF
# Save even more size by removing apt lists (that are currently removed
# downstream anyway)
rm -rf chroot/var/lib/apt/lists/*
# Having device notes in the docker image can cause problems
# (https://github.com/tianon/docker-brew-ubuntu-core/issues/62)
# so remove them. We only do this for docker out of an
# abundance of caution.
rm -rf chroot/dev/*
fi
if [ -f config/universe-enabled ]; then