From 051d24a922a3515f848e165fdccbe03941efc5c3 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 2 May 2013 13:21:08 +0000 Subject: init: use --update-cache flag instead of a separate apk update run --- initramfs-init.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/initramfs-init.in b/initramfs-init.in index fa629d2..2bc8439 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -689,9 +689,7 @@ apkflags="--initdb --progress --force" if [ -z "$ALPINE_REPO" ]; then apkflags="$apkflags --no-network" else - # HTTP: convince apk to behave - apk add --root $sysroot $repo_opt $apkflags - apk update --root $sysroot $repo_opt + apkflags="$apkflags --update-cache" fi if [ -n "$KOPT_quiet" ]; then -- cgit v1.2.3