diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-27 17:02:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-28 22:10:57 +0100 |
commit | 7b931f26f90f380a29e5eb0390e6793348bc2a8c (patch) | |
tree | c1edc78e784702628edf51cde2438bf9f3a88fd4 | |
parent | 26346869cd2b0dacb95ea9e2065f0da894042675 (diff) | |
download | alpine_aports-7b931f26f90f380a29e5eb0390e6793348bc2a8c.tar.bz2 alpine_aports-7b931f26f90f380a29e5eb0390e6793348bc2a8c.tar.xz alpine_aports-7b931f26f90f380a29e5eb0390e6793348bc2a8c.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-x | scripts/genrootfs.sh | 4 |
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 | |||
54 | http://dl-cdn.alpinelinux.org/alpine/$branch/community | 54 | http://dl-cdn.alpinelinux.org/alpine/$branch/community |
55 | EOF | 55 | EOF |
56 | 56 | ||
57 | #rm -rf "$tmp"/var/cache/apk/* | 57 | tar --numeric-owner --exclude='dev/*' -c -C "$tmp" . | gzip -9n > "$outfile" |
58 | |||
59 | tar --numeric-owner -c -C "$tmp" . | gzip -9n > "$outfile" | ||