aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-02-27 17:02:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-03-06 14:35:53 +0100
commit9cf6de4bfdc2a2652d7e09a22fedb5fbed0c7fc0 (patch)
tree1f68f724f136e447b8015a36bed3afe1d8b08d82
parent8b5261df04b21aa6355b4dd9facc74fae7aeecbd (diff)
downloadalpine_aports-9cf6de4bfdc2a2652d7e09a22fedb5fbed0c7fc0.tar.bz2
alpine_aports-9cf6de4bfdc2a2652d7e09a22fedb5fbed0c7fc0.tar.xz
alpine_aports-9cf6de4bfdc2a2652d7e09a22fedb5fbed0c7fc0.zip
scripts/genrootfs.sh: exclude dev/*
exclude /dev/* from minirootfs. https://github.com/gliderlabs/docker-alpine/issues/356 (cherry picked from commit 2f07f9eb884af94f47b94c1fdde5e2ecdd177a19)
-rwxr-xr-xscripts/genrootfs.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/genrootfs.sh b/scripts/genrootfs.sh
index 5118027632..59eed20f97 100755
--- a/scripts/genrootfs.sh
+++ b/scripts/genrootfs.sh
@@ -54,6 +54,4 @@ http://dl-cdn.alpinelinux.org/alpine/$branch/main
54http://dl-cdn.alpinelinux.org/alpine/$branch/community 54http://dl-cdn.alpinelinux.org/alpine/$branch/community
55EOF 55EOF
56 56
57#rm -rf "$tmp"/var/cache/apk/* 57tar --numeric-owner --exclude='dev/*' -c -C "$tmp" . | gzip -9n > "$outfile"
58
59tar --numeric-owner -c -C "$tmp" . | gzip -9n > "$outfile"