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

ubuntu/cosmic
Michael Hudson-Doyle 6 years ago
commit ef1e3425a1

6
debian/changelog vendored

@ -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.

@ -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

Loading…
Cancel
Save