| what is the rationale behind the following in the _create of types/gpt.nix
if ! blkid "${config.device}" >&2; then
sgdisk --clear "${config.device}"
fi
I say this because when working on the more advanced bcachefs, I have mostly everything working, except the reformat test, as wipefs and all of the disk deactivation doesn't fully clear bcachefs superblocks and such. blkid still returns a value. Thus when trying to re-partition, there are alignment errors since it never gets cleared.
Ultimately: what is the use case of this check? Would we not want to always clear before attempting a partitioning?
|