encrypted devices: add label set assertion (#29651)

This commit is contained in:
Silvan Mosberger 2017-09-23 20:02:16 +02:00 committed by zimbatm
parent 8d001911db
commit eca23233b2

View File

@ -56,6 +56,13 @@ in
};
config = mkIf anyEncrypted {
assertions = map (dev: {
assertion = dev.label != null;
message = ''
The filesystem for ${dev.mountPoint} has encrypted.enable set to true, but no encrypted.label set
'';
}) encDevs;
boot.initrd = {
luks = {
devices =