summaryrefslogtreecommitdiff
path: root/initramfs-init
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-16 06:30:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-16 06:30:11 +0000
commit5983f34cdd2bd08079a477f644ba0e2fc4c56031 (patch)
tree174fcf8ee523c74ec5fda75d8219dee532f5a445 /initramfs-init
parente047051e5d157d36a51108646b0bd49e0120d0b4 (diff)
downloadabuild-5983f34cdd2bd08079a477f644ba0e2fc4c56031.tar.gz
abuild-5983f34cdd2bd08079a477f644ba0e2fc4c56031.tar.bz2
abuild-5983f34cdd2bd08079a477f644ba0e2fc4c56031.tar.xz
abuild-5983f34cdd2bd08079a477f644ba0e2fc4c56031.zip
initram: unpack apkovl with --numeric-owner
fixes #23
Diffstat (limited to 'initramfs-init')
-rwxr-xr-xinitramfs-init6
1 files changed, 3 insertions, 3 deletions
diff --git a/initramfs-init b/initramfs-init
index f3b158d..a6bbe26 100755
--- a/initramfs-init
+++ b/initramfs-init
@@ -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