From 092b316357b53bdce9e2d1c2723e1df43892bd74 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Tue, 17 Jul 2018 13:34:01 +1200 Subject: [PATCH] add a comment explaining why /dev cleaning is docker-only --- live-build/auto/build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/live-build/auto/build b/live-build/auto/build index c217bbe1..fdb216c3 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -266,8 +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 + # 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 because the rootfs + # for system booting without initramfs needs a minimal /dev to + # get to the point of running udev. rm -rf chroot/dev/* fi