mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-12 12:29:11 +00:00
osbuilder: install rust before sourcing cargo env
Otherwise we cannot find it. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
@@ -26,7 +26,8 @@ build_rootfs() {
|
||||
check_root
|
||||
mkdir -p "${ROOTFS_DIR}"
|
||||
|
||||
cp -a -r /bin /etc /lib /sbin /usr /var ${ROOTFS_DIR}
|
||||
rm -rf ${ROOTFS_DIR}/var/tmp
|
||||
cp -a -r -f /bin /etc /lib /sbin /usr /var ${ROOTFS_DIR}
|
||||
mkdir -p ${ROOTFS_DIR}{/root,/proc,/dev,/home,/media,/mnt,/opt,/run,/srv,/sys,/tmp}
|
||||
|
||||
echo "${MIRROR}/${OS_VERSION}/main" > ${ROOTFS_DIR}/etc/apk/repositories
|
||||
|
Reference in New Issue
Block a user