
Btrfs raid with Disko
I wrote a helper function mkBtrfsRAID to make defining btrfs raid collections more ergonomic in disko. It has the “other” disks formatted with an empty partition table, so disko knows about them and asks for wipe confirmation on formatting. Doesn’t solve the abovementioned problem when the first disk that’s actually tried to be mounted fails or is missing though. let # make a disko.devices.disk attrset that empty-format the given disks before anything else mkEmptyDisks = { before ?…