diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-15 11:19:14 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-15 11:19:14 +0000 |
commit | 1e80b3f1c96d7f26e994b8f16bea1cdc955616f8 (patch) | |
tree | 6cd2d6335146face0fe01f22f6812bdb5061fd5a /initramfs-init | |
parent | 93ada374bc97e413da72f4ab4026246ca5398dfe (diff) | |
download | abuild-1e80b3f1c96d7f26e994b8f16bea1cdc955616f8.tar.gz abuild-1e80b3f1c96d7f26e994b8f16bea1cdc955616f8.tar.bz2 abuild-1e80b3f1c96d7f26e994b8f16bea1cdc955616f8.tar.xz abuild-1e80b3f1c96d7f26e994b8f16bea1cdc955616f8.zip |
initram: find all repos in 2 dir levels on boot media
Diffstat (limited to 'initramfs-init')
-rwxr-xr-x | initramfs-init | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/initramfs-init b/initramfs-init index ce819f1..bec66db 100755 --- a/initramfs-init +++ b/initramfs-init @@ -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 |