Clean the iso directory before building boot image

This commit is contained in:
Zhang Junyang
2023-07-21 12:17:12 +08:00
committed by Tate, Hongliang Tian
parent 6a7c6b035c
commit 0ab7fcc408

View File

@ -4,6 +4,11 @@ set -eux
# Cargo passes the path to the built executable as the first argument.
KERNEL=$1
# Clean up the image directory
if [ -f target/iso_root ]; then
rm -rf target/iso_root
fi
# Copy the needed files into an ISO image.
mkdir -p target/iso_root/boot
cp $KERNEL target/iso_root/boot/jinux