# mdadm --zero-superblock /dev/sda2
# /lib/udev/vol_id -u /dev/sda2
6428a2d1-c30d-4916-ab6b-625117989651
#
I wonder how this mdadm data was still there, though...
Thanks for your help,
Ok, good to know, thanks for testing this. I wonder whether we should do
something about this in setup-storage, but I believe that doing mdadm
--zero-superblock on each and every non-RAID device is pure overkill.
I agree. You may want to add a few words in the error message,
something like "Failed to obtain UUID [...], check that $device_name is
not or has not been a RAID partition".
--
Nicolas