diff --git a/package/harvester-os/files/usr/sbin/harv-install b/package/harvester-os/files/usr/sbin/harv-install index 964cc5efa..5f8d4a3d1 100755 --- a/package/harvester-os/files/usr/sbin/harv-install +++ b/package/harvester-os/files/usr/sbin/harv-install @@ -30,7 +30,7 @@ clear_disk_label() echo "wiping all disks" for disk in $(lsblk -d -n -J -o NAME,TYPE | jq -r '.blockdevices[] | select(.type == "disk") | .name') do - if [ "/dev/$disk" == "$(grep '/run/initramfs/live' /proc/mounts | sed -n 's/[0-9].*//p')" ]; then + if [ "/dev/$disk" == "$(grep $ISOMNT /proc/mounts | sed -n 's/[0-9].*//p')" ]; then continue fi sgdisk -Z /dev/$disk