diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-02 13:21:08 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-05-02 13:21:08 +0000 |
commit | 051d24a922a3515f848e165fdccbe03941efc5c3 (patch) | |
tree | fdc0407f189590d4f05f3c0e04bd3f464461cdc8 | |
parent | f869380d2dd0a3973345ce587c59ef7e06d92a0b (diff) | |
download | mkinitfs-051d24a922a3515f848e165fdccbe03941efc5c3.tar.bz2 mkinitfs-051d24a922a3515f848e165fdccbe03941efc5c3.tar.xz |
init: use --update-cache flag instead of a separate apk update run
-rwxr-xr-x | initramfs-init.in | 4 |
1 files changed, 1 insertions, 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 |