initrd: don't include /mnt in the initrd

With the move to compose/volume mounts this now includes the current
directory. Noticed it when my initrds were getting bigger and bigger.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2016-03-07 12:34:41 +00:00
parent e003a56326
commit 2b911247af

View File

@ -4,7 +4,7 @@ set -e
rm -rf /tmp/*
for f in $(ls | grep -vE 'dev|sys|proc|tmp|export')
for f in $(ls | grep -vE 'dev|sys|proc|tmp|export|mnt')
do
cp -a $f /tmp
done