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:
Peng Tao
2020-08-21 23:19:34 +08:00
parent 7b5ab58689
commit cf1b72d6c6
2 changed files with 12 additions and 17 deletions

View File

@@ -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