mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 01:43:22 +00:00
Clean the iso directory before building boot image
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
6a7c6b035c
commit
0ab7fcc408
@ -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
|
||||
|
Reference in New Issue
Block a user