Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Bo YU <tsu.yubo@gmail.com>
  • Loading branch information
yuzibo committed Dec 26, 2023
1 parent e55c579 commit 02151ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ FROM builder as build_image
WORKDIR /builder
#COPY --from=build_rootfs /build/rv64-sid/ ./rv64-port/
COPY create_image.sh build.sh ./
COPY rootfs/setup_rootfs.sh ./
COPY rootfs/setup_rootfs.sh ./rv64-port/

CMD /builder/build.sh ${KERNEL_VERSION}

4 changes: 2 additions & 2 deletions create_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ function copy_rootfs(){
get_kernel_deb

cp -v /tmp/vf2_kernel_deb/*.deb ${ROOTFS_POINT}/tmp
cp -v /builder/setup_rootfs.sh ${ROOTFS_POINT}
chroot "${ROOTFS_POINT}" qemu-riscv64-static /bin/sh ${ROOTFS_POINT}/setup_rootfs.sh
cp -v /tmp/setup_rootfs.sh ${ROOTFS_POINT}
chroot "${ROOTFS_POINT}" qemu-riscv64-static /bin/sh /setup_rootfs.sh
rm "${ROOTFS_POINT}/setup_rootfs.sh" "${ROOTFS_POINT}/usr/bin/qemu-riscv64-static"

umount "${ROOTFS_POINT}"
Expand Down

0 comments on commit 02151ad

Please sign in to comment.