Skip to content
Snippets Groups Projects
Commit 749e1e0f authored by Natanael Copa's avatar Natanael Copa
Browse files

scripts/genrootfs: add --no-cache when fetching alpine-base

parent 40dcf3f6
No related branches found
No related tags found
No related merge requests found
...@@ -27,17 +27,17 @@ if [ -z "$outfile" ]; then ...@@ -27,17 +27,17 @@ if [ -z "$outfile" ]; then
outfile=$name-$arch.tar.gz outfile=$name-$arch.tar.gz
fi fi
${APK:-apk} add --keys-dir "$keys_dir" \ ${APK:-apk} add --keys-dir "$keys_dir" --no-cache \
--repositories-file "$repositories_file" \ --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 for link in $("$tmp"/bin/busybox --list-full); do
[ -e "$tmp"/$link ] || ln -s /bin/busybox "$tmp"/$link [ -e "$tmp"/$link ] || ln -s /bin/busybox "$tmp"/$link
done done
${APK:-apk} fetch --keys-dir "$keys_dir" \ ${APK:-apk} fetch --keys-dir "$keys_dir" --no-cache \
--repositories-file "$repositories_file" \ --repositories-file "$repositories_file" \
--stdout alpine-base | tar -zx -C "$tmp" etc/ --stdout --quiet alpine-base | tar -zx -C "$tmp" etc/
branch=edge branch=edge
VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release) VERSION_ID=$(awk -F= '$1=="VERSION_ID" {print $2}' "$tmp"/etc/os-release)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment