summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinitramfs-init9
1 files changed, 5 insertions, 4 deletions
diff --git a/initramfs-init b/initramfs-init
index ce819f1..bec66db 100755
--- a/initramfs-init
+++ b/initramfs-init
@@ -184,6 +184,11 @@ if [ -d $ALPINE_MNT/firmware ]; then
eend $?
fi
+mkdir -p /etc/apk
+for i in $ALPINE_MNT/*/APK_INDEX.gz $ALPINE_MNT/*/*/APK_INDEX.gz; do
+ [ -r "$i" ] && echo ${i%/APK_INDEX.gz} >> /etc/apk/repositories
+done
+
# early console?
if [ "$SINGLEMODE" = "yes" ]; then
echo "Entering single mode. Type 'exit' to continue booting."
@@ -225,10 +230,6 @@ fi
# install new root
ebegin "Installing packages to root filesystem"
-mkdir -p /etc/apk
-for i in $ALPINE_MNT/packages/* $ALPINE_MNT/apks; do
- [ -r "$i/APK_INDEX.gz" ] && echo $i >> /etc/apk/repositories
-done
if [ -n "$KOPT_chart" ]; then
pkgs="$pkgs acct"
fi