cd /srv/os/$rootfs_dir
download_url="http://api.compass-ci.openeuler.org:${SRV_HTTP_PORT}/os/${rootfs_dir}.cgz"
wget $download_url
wget -qc $download_url
unnecessary
Thanks, Yinsi
-q, --quiet quiet (no output) -c, --continue resume getting a partially-downloaded file
[ "$?" -ne 0 ] && {
log_error "failed to download os rootfs: $download_url"
exit 1
}
gzip -dc ${os_version}.cgz | cpio -id
cpio --quiet -id
Thanks, Jiaxin
rm -rf ${os_version}.cgz
+}
+download_os_rootfs
2.23.0