aboutsummaryrefslogtreecommitdiffstats
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 13:36:34 +0000
commit6debc2245be2af176a3cc48dc212295126937a05 (patch)
treeb5fd541818b092104a604300a71ee9f21a3f7bf5
parent27bff2a1bb10ef7f264cf5f136ef2c8c475eefac (diff)
downloadaports-6debc2245be2af176a3cc48dc212295126937a05.tar.bz2
aports-6debc2245be2af176a3cc48dc212295126937a05.tar.xz
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
http://dl-cdn.alpinelinux.org/alpine/$branch/community
EOF
-#rm -rf "$tmp"/var/cache/apk/*
-
-tar --numeric-owner -c -C "$tmp" . | gzip -9n > "$outfile"
+tar --numeric-owner --exclude='dev/*' -c -C "$tmp" . | gzip -9n > "$outfile"