diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-02-27 17:02:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-03-06 14:36:22 +0100 |
commit | 1423e07ca3009239ac047db6a2b4dcc7fe9d1f3b (patch) | |
tree | a1f20b085bcad119ae5daa33603785d659e3e379 /scripts | |
parent | b9dac1a3be2e244ff12280c2275e84cfa412b12a (diff) | |
download | aports-1423e07ca3009239ac047db6a2b4dcc7fe9d1f3b.tar.bz2 aports-1423e07ca3009239ac047db6a2b4dcc7fe9d1f3b.tar.xz |
scripts/genrootfs.sh: exclude dev/*
exclude /dev/* from minirootfs.
https://github.com/gliderlabs/docker-alpine/issues/356
(cherry picked from commit 2f07f9eb884af94f47b94c1fdde5e2ecdd177a19)
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" |