Hide VTOYEFI partition by marking as `diag`
The VTOYEFI partition is flagged as msftdata. This causes the VTOYEFI partition to show up on XFCE desktop like this:
This patch hides the VTOYEFI partition by marking it as diag instead. The created Ventoy USB stick has been tested and works well. No issues with booting, and VTOYEFI partition is hidden on the XFCE desktop.
OK so I tested this patch on a few different devices, and it is actually not compatible with some older laptops.
There are quite a few other options here: https://www.gnu.org/software/parted/manual/parted.html#set
I've tried msftres and esp, both work on modern laptops. However, I don't have access to older laptops right now, so any suggestions would be very much appreciated.
The way windows install on empty disk creates EFI partition on gpart type partition table is with boot and esp flags and FAT32 type. However, non UEFI BIOS, does not handle such partitioning (MBR type partitions).