mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 00:11:15 +00:00
1.0.63 release
This commit is contained in:
@@ -291,8 +291,23 @@ if [ "$MODE" = "install" -a -z "$NONDESTRUCTIVE" ]; then
|
||||
dd status=none conv=fsync if=/dev/zero of=$DISK bs=512 count=32 seek=$part2_start_sector
|
||||
|
||||
#format part1
|
||||
vtinfo "Format partition 1 ..."
|
||||
mkexfatfs -n "$VTNEW_LABEL" -s $cluster_sectors ${PART1}
|
||||
wait_and_create_part ${PART1} ${PART2}
|
||||
if [ -b ${PART1} ]; then
|
||||
vtinfo "Format partition 1 ${PART1} ..."
|
||||
mkexfatfs -n "$VTNEW_LABEL" -s $cluster_sectors ${PART1}
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "mkexfatfs failed, now retry..."
|
||||
mkexfatfs -n "$VTNEW_LABEL" -s $cluster_sectors ${PART1}
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "######### mkexfatfs failed, exit ########"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "mkexfatfs success"
|
||||
fi
|
||||
else
|
||||
vterr "${PART1} NOT exist"
|
||||
fi
|
||||
|
||||
vtinfo "writing data to disk ..."
|
||||
dd status=none conv=fsync if=./boot/boot.img of=$DISK bs=1 count=446
|
||||
|
Reference in New Issue
Block a user