Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swap: don't create filesystem if randomEncryption is enabled
This is not an issue when initially creating the partition because device mapper will just map on top of the filesystem, but it breaks incremental updates because the check for `TYPE=` will fail, and the subsequent attempt to run `mkswap` also fails: mkswap: cannot open /dev/disk/by-partlabel/disk-nix-store-swap: Device or resource busy Instead, just don't do anything, NixOS will take care of it.
- Loading branch information