moved partprobe

This commit is contained in:
poslop
2025-07-25 16:34:49 -05:00
parent b55073bf24
commit 14bfedd3bc

View File

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