summaryrefslogtreecommitdiff
path: root/initramfs-init
diff options
context:
space:
mode:
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