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

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

parent 6166a813
...@@ -626,9 +626,13 @@ else ...@@ -626,9 +626,13 @@ else
vtoycli partresize -s $DISK $part2_start vtoycli partresize -s $DISK $part2_start
fi fi
if [ "$PART1_TYPE" = "EE" ]; then
vtinfo "update esp partition attribute" vtinfo "update esp partition attribute"
vtoycli gpt -f $DISK vtoycli gpt -f $DISK
sync sync
fi
echo "" echo ""
vtinfo "Update Ventoy on $DISK successfully finished." vtinfo "Update Ventoy on $DISK successfully finished."
......
...@@ -807,6 +807,8 @@ static void * ventoy_update_thread(void *data) ...@@ -807,6 +807,8 @@ static void * ventoy_update_thread(void *data)
pstGPT->PartTbl[1].Attr, 0x8000000000000000ULL); pstGPT->PartTbl[1].Attr, 0x8000000000000000ULL);
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 = 0;
pstGPT->Head.Crc = ventoy_crc32(&(pstGPT->Head), pstGPT->Head.Length); pstGPT->Head.Crc = ventoy_crc32(&(pstGPT->Head), pstGPT->Head.Length);
ventoy_write_gpt_part_table(fd, disk->size_in_byte, pstGPT); 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