From db606b4b4861076524232f52002411dc900a03ad Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 4 Jun 2009 14:56:28 +0000 Subject: init: unpack uclibc when dealing with encrypted apkovls openssl needs libdl which is not there by default. --- initramfs-init.in | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/initramfs-init.in b/initramfs-init.in index f8827a0..ae82e8a 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -66,6 +66,14 @@ retry_mount() { return 1 } +unpack_apk() { + local i + for i in $ALPINE_MNT/*/*/$1-[0-9]*.apk $ALPINE_MNT/*/$1-[0-9]*.apk; do + [ -f "$i" ] && tar --numeric-owner -C / -zxf $i && return 0 + done + return 1 +} + unpack_apkovl() { local ovl="$1" local dest="$2" @@ -76,9 +84,8 @@ unpack_apkovl() { return $? fi - for i in $ALPINE_MNT/*/*/openssl-[0-9]*.apk $ALPINE_MNT/*/openssl-[0-9]*.apk; do - [ -f "$i" ] && tar --numeric-owner -C / -zxf $i && break - done + unpack_apk uclibc + unpack_apk openssl if ! openssl list-cipher-commands | grep "^$suffix$" > /dev/null; then errstr="Cipher $suffix is not supported" -- cgit v1.2.3