On Wed, Dec 02, 2015 at 11:34:25AM +0100, Raimo Niskanen wrote: > > If you are zeroing the char devices under the feet of a running OS i would > not dare to guess what happens. Can you try to zero the key disk and the > first 1MB of the RAID partition from bsd.rd instead? >
Given that I can not be sure sd0a exists when the installer runs (since it may be a fresh machine), I would need to add some complexity inside the script to look if it exists, and if that is the case then wipe it. However, thinking some more about what I could do at install time I recalled you can add "-C force" to the bioctl invocation to make it ignore unclean data in metadata areas, turning: === bioctl -c C -l /dev/sd0a -k /dev/sd0d softraid0 === ... into: === bioctl -c C -C force -l /dev/sd0a -k /dev/sd0d softraid0 === And that indeed seems to fix the problem. I now only wipe the keydisk partition when "destroying" the disk as I did before yet the installer manages to create the sd1 device as expected. Thanks for the pointers :). -- Patrik Lundin