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 ...@@ -184,6 +184,11 @@ if [ -d $ALPINE_MNT/firmware ]; then
eend $? eend $?
fi 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? # early console?
if [ "$SINGLEMODE" = "yes" ]; then if [ "$SINGLEMODE" = "yes" ]; then
echo "Entering single mode. Type 'exit' to continue booting." echo "Entering single mode. Type 'exit' to continue booting."
...@@ -225,10 +230,6 @@ fi ...@@ -225,10 +230,6 @@ fi
# install new root # install new root
ebegin "Installing packages to root filesystem" 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 if [ -n "$KOPT_chart" ]; then
pkgs="$pkgs acct" pkgs="$pkgs acct"
fi 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