initram: unpack apkovl with --numeric-owner

fixes #23
This commit is contained in:
Natanael Copa 2009-04-16 06:30:11 +00:00
parent e047051e5d
commit 5983f34cdd

View File

@ -75,7 +75,7 @@ unpack_apkovl() {
fi
for i in $ALPINE_MNT/*/*/openssl-[0-9]*.apk $ALPINE_MNT/*/openssl-[0-9]*.apk; do
[ -f "$i" ] && tar -C / -zxf $i && break
[ -f "$i" ] && tar --numeric-owner -C / -zxf $i && break
done
if ! openssl list-cipher-commands | grep "^$suffix$" > /dev/null; then
@ -86,8 +86,8 @@ unpack_apkovl() {
# beep
echo -e "\007"
while [ $count -lt 3 ]; do
openssl enc -d -$suffix -in "$ovl" | tar -C "$dest" -zx \
2>/dev/null && return 0
openssl enc -d -$suffix -in "$ovl" | tar --numeric-owner \
-C "$dest" -zx 2>/dev/null && return 0
count=$(( $count + 1 ))
done
return 1