Commit 9a8dc42d authored by longpanda's avatar longpanda
Browse files

Fix the issue introduced in LinuxGUI version. (#3128)

parent 6166a813
......@@ -625,10 +625,14 @@ else
check_umount_disk "$DISK"
vtoycli partresize -s $DISK $part2_start
fi
vtinfo "update esp partition attribute"
vtoycli gpt -f $DISK
sync
if [ "$PART1_TYPE" = "EE" ]; then
vtinfo "update esp partition attribute"
vtoycli gpt -f $DISK
sync
fi
echo ""
vtinfo "Update Ventoy on $DISK successfully finished."
......
......@@ -807,6 +807,8 @@ static void * ventoy_update_thread(void *data)
pstGPT->PartTbl[1].Attr, 0x8000000000000000ULL);
pstGPT->PartTbl[1].Attr = 0x8000000000000000ULL;
pstGPT->Head.PartTblCrc = ventoy_crc32(pstGPT->PartTbl, sizeof(pstGPT->PartTbl));
pstGPT->Head.Crc = 0;
pstGPT->Head.Crc = ventoy_crc32(&(pstGPT->Head), pstGPT->Head.Length);
ventoy_write_gpt_part_table(fd, disk->size_in_byte, pstGPT);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment