From 013dff431ef1ce207f8971b5ba8c9d28d0e4a59b Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Tue, 17 Jul 2018 12:02:34 +1200 Subject: [PATCH] Remove device nodes from Docker images. (LP: #1645468) --- debian/changelog | 3 +++ live-build/auto/build | 3 +++ 2 files changed, 6 insertions(+) diff --git a/debian/changelog b/debian/changelog index 3975252a..151fee95 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,9 @@ livecd-rootfs (2.533) UNRELEASED; urgency=medium * Update unminimize script text and install ubuntu-standard when unminimizing a minimal image (LP: #1778777) + [ Michael Hudson-Doyle ] + * Remove device nodes from Docker images. (LP: #1645468) + -- Robert C Jennings Fri, 08 Jun 2018 10:10:53 -0700 livecd-rootfs (2.532) cosmic; urgency=medium diff --git a/live-build/auto/build b/live-build/auto/build index 519ce1e7..c217bbe1 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -266,6 +266,9 @@ 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 + rm -rf chroot/dev/* fi if [ -f config/oem-config-preinstalled ]; then