mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-07 17:07:58 +08:00
Extraction
This commit is contained in:
parent
6e36569b9b
commit
3cda109cf0
@ -69,10 +69,10 @@ if [ ! -f "${RDC}" ]; then
|
||||
fi
|
||||
|
||||
{ xz -dc <"$RDC" >"$TMP/rd" 2>/dev/null; rc=$?; } || :
|
||||
(( rc != 0 )) && error "Failed to extract $RDC" && exit 91
|
||||
(( rc > 1 )) && error "Failed to unxz $RDC, reason $rc" && exit 91
|
||||
|
||||
{ (cd "$TMP" && cpio -idm <"$TMP/rd" 2>/dev/null); rc=$?; } || :
|
||||
(( rc != 0 )) && error "Failed to cpio $RDC" && exit 92
|
||||
(( rc != 0 )) && error "Failed to cpio $RDC, reason $rc" && exit 92
|
||||
|
||||
mkdir -p /run/extract
|
||||
for file in $TMP/usr/lib/libcurl.so.4 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user