+load_cci_defaults
+rootfs_dir=${os}/${os_arch}/${os_version}
+download_os_rootfs() +{
mkdir -p /srv/os/${rootfs_dir}
cd /srv/os/$rootfs_dir
download_url="http://api.compass-ci.openeuler.org:${SRV_HTTP_PORT}/os/${rootfs_dir}.cgz"
wget $download_url
variable download_url is redundant, just use: wget 'http://xxxxx'
Thanks, Luan Shengde
[ "$?" -ne 0 ] && {
log_error "failed to download os rootfs: $download_url"
exit 1
}
gzip -dc ${os_version}.cgz | cpio -id
rm -rf ${os_version}.cgz
+}
+download_os_rootfs
2.23.0