exit 1
}
+download_os_rootfs() +{
- cd $rootfs_dir
- wget_download "http://api.compass-ci.openeuler.org:$%7BSRV_HTTP_OS_PORT%7D/os/$%7Bos%7D/$%7..."
- gzip -dc ${os_version}.cgz | cpio -id
- rm -rf ${os_version}.cgz
How about "cd $rootfs_dir && {wget... }" to avoid operate in an unwanted dir when cd failed.
ok
+}
gzip -dc ${os_version}.cgz | cpio -id
rm -rf ${os_version}.cgz
+download_osimage() +{
- cd $osimage_dir
- wget_download "http://api.compass-ci.openeuler.org:$%7BSRV_HTTP_INITRD_PORT%7D/initrd/osima..."
- wget_download "http://api.compass-ci.openeuler.org:$%7BSRV_HTTP_INITRD_PORT%7D/initrd/deps/..."
ditto.
good
Thanks, Yinsi
Thanks, Xijian