From 749e1e0f659bf7b9538d9c7478b6a191f8c94ea6 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Fri, 16 Dec 2016 10:11:38 +0000
Subject: [PATCH] scripts/genrootfs: add --no-cache when fetching alpine-base

---
 scripts/genrootfs.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/genrootfs.sh b/scripts/genrootfs.sh
index 9c9df40bb18a..ac760e6e0deb 100755
--- a/scripts/genrootfs.sh
+++ b/scripts/genrootfs.sh
@@ -27,17 +27,17 @@ if [ -z "$outfile" ]; then
 	outfile=$name-$arch.tar.gz
 fi
 
-${APK:-apk} add --keys-dir "$keys_dir" \
+${APK:-apk} add --keys-dir "$keys_dir" --no-cache \
 	--repositories-file "$repositories_file" \
-	--no-script --no-cache --root "$tmp" --initdb \
+	--no-script --root "$tmp" --initdb \
 	"$@"
 for link in $("$tmp"/bin/busybox --list-full); do
 	[ -e "$tmp"/$link ] || ln -s /bin/busybox "$tmp"/$link
 done
 
-${APK:-apk} fetch --keys-dir "$keys_dir" \
+${APK:-apk} fetch --keys-dir "$keys_dir" --no-cache \
 	--repositories-file "$repositories_file" \
-	--stdout alpine-base | tar -zx -C "$tmp" etc/
+	--stdout --quiet alpine-base | tar -zx -C "$tmp" etc/
 
 branch=edge
 VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}'  "$tmp"/etc/os-release)
-- 
GitLab