Commit 1e80b3f1 authored by Natanael Copa's avatar Natanael Copa
Browse files

initram: find all repos in 2 dir levels on boot media

parent 93ada374
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment