mirror of https://github.com/tteck/Proxmox.git
Decompression speedup
This commit is contained in:
parent
cf20993b86
commit
96e5026f82
|
@ -290,7 +290,7 @@ echo -en "\e[1A\e[0K"
|
||||||
FILE=$(basename $URL)
|
FILE=$(basename $URL)
|
||||||
msg_ok "Downloaded ${CL}${BL}haos_generic-aarch64-${BRANCH}.qcow2.xz${CL}"
|
msg_ok "Downloaded ${CL}${BL}haos_generic-aarch64-${BRANCH}.qcow2.xz${CL}"
|
||||||
msg_info "Extracting Disk Image"
|
msg_info "Extracting Disk Image"
|
||||||
unxz $FILE
|
unxz -T4 $FILE #use -T4, full speed decompression
|
||||||
STORAGE_TYPE=$(pvesm status -storage $STORAGE | awk 'NR>1 {print $2}')
|
STORAGE_TYPE=$(pvesm status -storage $STORAGE | awk 'NR>1 {print $2}')
|
||||||
case $STORAGE_TYPE in
|
case $STORAGE_TYPE in
|
||||||
nfs | dir)
|
nfs | dir)
|
||||||
|
|
Loading…
Reference in New Issue