Sometime, it can happen that the erase-other-disks script fails and
indicate that /dev/sda1 isn't a block device anymore. This happened
when /dev/sda was erased before /dev/sda1. So to avoid this, we will
zero the partitions of ${disk} first, and hopefully the error won't
happen again.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
udevadm settle
log "\${sd} devices present after: `echo /dev/\${sd}*`"
done
-for dev in ${disk}*; do
+for dev in ${disk}?* ${disk}*; do
zero
done
echo ===