summaryrefslogtreecommitdiffstats
path: root/initramfs-init
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-02 09:41:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-02 09:41:32 +0000
commit0dff05bda23e79083c6a328e23765bab6c33a3b1 (patch)
treee8a24b5dbea470ec2eeb1c7c132af3b33d54154d /initramfs-init
parentd48b86e8a2864c77ecb024589fe2d948adfa805e (diff)
downloadabuild-0dff05bda23e79083c6a328e23765bab6c33a3b1.tar.bz2
abuild-0dff05bda23e79083c6a328e23765bab6c33a3b1.tar.xz
initram: ignore non-repositories in packages/ subdir
Diffstat (limited to 'initramfs-init')
-rwxr-xr-xinitramfs-init4
1 files changed, 2 insertions, 2 deletions
diff --git a/initramfs-init b/initramfs-init
index 6e2c998..ce819f1 100755
--- a/initramfs-init
+++ b/initramfs-init
@@ -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"