diff --git a/Ventoy/CloneToDisk.sh b/Ventoy/CloneToDisk.sh index 9e343bd..0be68c5 100755 --- a/Ventoy/CloneToDisk.sh +++ b/Ventoy/CloneToDisk.sh @@ -55,13 +55,13 @@ lz4 -dc PBX-LVM.img.lz4 | dd of=$disk_name status=progress echo "Repairing partition tables" sgdisk -e $disk_name sgdisk -v $disk_name +partprobe echo "Expanding Partition 3 on $disk_name..." sgdisk --delete=3 $disk_name sgdisk --new=3:0:0 --typecode=3:8e00 --change-name=3:"Linux LVM" $disk_name # Inform the OS of partition table changes -partprobe $disk_name sleep 2 # Give the system a moment to recognize changes # Resize physical volume