initram: ignore non-repositories in packages/ subdir

This commit is contained in:
Natanael Copa 2009-04-02 09:41:32 +00:00
parent d48b86e8a2
commit 0dff05bda2

View File

@ -226,8 +226,8 @@ fi
# install new root
ebegin "Installing packages to root filesystem"
mkdir -p /etc/apk
for i in $ALPINE_MNT/packages/*; do
echo $i >> /etc/apk/repositories
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"