From 5da682acedf4011a647394843e819c50e8f5200b Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 2 May 2012 11:44:04 +0000 Subject: [PATCH] init: search boot repositories after relocation --- initramfs-init.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/initramfs-init.in b/initramfs-init.in index 4425990..b14ebf9 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -84,6 +84,7 @@ unpack_apkovl() { fi # we need openssl. let apk handle deps + find_boot_repositories > /tmp/repositories apk add --quiet --initdb --repositories-file /tmp/repositories openssl\ || return 1 @@ -434,9 +435,6 @@ fi retry_mount -o ro $mount_opts $ALPINE_DEV $ALPINE_MNT >/dev/null 2>&1 eend $? -# generate apk repositories file -find_boot_repositories > /tmp/repositories - # early console? if [ "$SINGLEMODE" = "yes" ]; then echo "Entering single mode. Type 'exit' to continue booting." @@ -543,6 +541,9 @@ pkgs="$pkgs alpine-base" mkdir -p $sysroot/etc/apk/keys/ cp -a /etc/apk/keys $sysroot/etc/apk +# generate apk repositories file. needs to be done after relocation +find_boot_repositories > /tmp/repositories + # generate repo opts for apk for i in $(cat /tmp/repositories); do repo_opt="$repo_opt --repository $i" -- 1.7.10