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

This commit is contained in:
Natanael Copa 2009-04-15 11:19:14 +00:00
parent 93ada374bc
commit 1e80b3f1c9
1 changed files with 5 additions and 4 deletions

View File

@ -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
# 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