Skip to content
Snippets Groups Projects
Commit 5983f34c authored by Natanael Copa's avatar Natanael Copa
Browse files

initram: unpack apkovl with --numeric-owner

fixes #23
parent e047051e
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ unpack_apkovl() { ...@@ -75,7 +75,7 @@ unpack_apkovl() {
fi fi
for i in $ALPINE_MNT/*/*/openssl-[0-9]*.apk $ALPINE_MNT/*/openssl-[0-9]*.apk; do 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 done
if ! openssl list-cipher-commands | grep "^$suffix$" > /dev/null; then if ! openssl list-cipher-commands | grep "^$suffix$" > /dev/null; then
...@@ -86,8 +86,8 @@ unpack_apkovl() { ...@@ -86,8 +86,8 @@ unpack_apkovl() {
# beep # beep
echo -e "\007" echo -e "\007"
while [ $count -lt 3 ]; do while [ $count -lt 3 ]; do
openssl enc -d -$suffix -in "$ovl" | tar -C "$dest" -zx \ openssl enc -d -$suffix -in "$ovl" | tar --numeric-owner \
2>/dev/null && return 0 -C "$dest" -zx 2>/dev/null && return 0
count=$(( $count + 1 )) count=$(( $count + 1 ))
done done
return 1 return 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment