aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-12-16 10:11:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-12-16 10:26:15 +0000
commit749e1e0f659bf7b9538d9c7478b6a191f8c94ea6 (patch)
treedc620755882dd543e3c97de119777740416f3893
parent40dcf3f65018306cbcb0f48d631f9b438ef7451c (diff)
downloadalpine_aports-749e1e0f659bf7b9538d9c7478b6a191f8c94ea6.tar.bz2
alpine_aports-749e1e0f659bf7b9538d9c7478b6a191f8c94ea6.tar.xz
alpine_aports-749e1e0f659bf7b9538d9c7478b6a191f8c94ea6.zip
scripts/genrootfs: add --no-cache when fetching alpine-base
-rwxr-xr-xscripts/genrootfs.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/genrootfs.sh b/scripts/genrootfs.sh
index 9c9df40bb1..ac760e6e0d 100755
--- a/scripts/genrootfs.sh
+++ b/scripts/genrootfs.sh
@@ -27,17 +27,17 @@ if [ -z "$outfile" ]; then
27 outfile=$name-$arch.tar.gz 27 outfile=$name-$arch.tar.gz
28fi 28fi
29 29
30${APK:-apk} add --keys-dir "$keys_dir" \ 30${APK:-apk} add --keys-dir "$keys_dir" --no-cache \
31 --repositories-file "$repositories_file" \ 31 --repositories-file "$repositories_file" \
32 --no-script --no-cache --root "$tmp" --initdb \ 32 --no-script --root "$tmp" --initdb \
33 "$@" 33 "$@"
34for link in $("$tmp"/bin/busybox --list-full); do 34for link in $("$tmp"/bin/busybox --list-full); do
35 [ -e "$tmp"/$link ] || ln -s /bin/busybox "$tmp"/$link 35 [ -e "$tmp"/$link ] || ln -s /bin/busybox "$tmp"/$link
36done 36done
37 37
38${APK:-apk} fetch --keys-dir "$keys_dir" \ 38${APK:-apk} fetch --keys-dir "$keys_dir" --no-cache \
39 --repositories-file "$repositories_file" \ 39 --repositories-file "$repositories_file" \
40 --stdout alpine-base | tar -zx -C "$tmp" etc/ 40 --stdout --quiet alpine-base | tar -zx -C "$tmp" etc/
41 41
42branch=edge 42branch=edge
43VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release) 43VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release)