mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-07-03 21:11:30 +00:00
add a comment explaining why /dev cleaning is docker-only
This commit is contained in:
parent
013dff431e
commit
092b316357
@ -266,8 +266,11 @@ EOF
|
|||||||
# Save even more size by removing apt lists (that are currently removed
|
# Save even more size by removing apt lists (that are currently removed
|
||||||
# downstream anyway)
|
# downstream anyway)
|
||||||
rm -rf chroot/var/lib/apt/lists/*
|
rm -rf chroot/var/lib/apt/lists/*
|
||||||
# Having device notes in the docker image can cause problems:
|
# Having device notes in the docker image can cause problems
|
||||||
# https://github.com/tianon/docker-brew-ubuntu-core/issues/62
|
# (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/*
|
rm -rf chroot/dev/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user