diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-27 17:02:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-27 17:02:38 +0000 |
commit | 2f07f9eb884af94f47b94c1fdde5e2ecdd177a19 (patch) | |
tree | ed6379c5556034b6113aee05cf03a8d8445018e1 /scripts | |
parent | d8ce74e36bc3d19a6268d5ed95fbf55aa6ed1211 (diff) | |
download | aports-2f07f9eb884af94f47b94c1fdde5e2ecdd177a19.tar.bz2 aports-2f07f9eb884af94f47b94c1fdde5e2ecdd177a19.tar.xz |
scripts/genrootfs.sh: exclude dev/*
exclude /dev/* from minirootfs.
https://github.com/gliderlabs/docker-alpine/issues/356
Diffstat (limited to 'scripts')
-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 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" |