Skip to content

Commit

Permalink
partprobe wiped disk only
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrokethecloud committed Feb 19, 2024
1 parent 7f60e55 commit 0bac4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/harvester-os/files/usr/sbin/harv-install
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ clear_disk_label()
for disk in $(lsblk -d -n -J -o NAME,TYPE | jq -r '.blockdevices[] | select(.type == "disk") | .name')
do
sgdisk -Z /dev/$disk
partprobe -s /dev/$disk
done
partprobe -s
else
# Clear the label of partitions that has $DATA_DISK_FSLABEL to prevent misidentification
# Also, while yip is partitioning the disk, if it sees the LABEL to be used exists,
Expand Down

0 comments on commit 0bac4f4

Please sign in to comment.