nix-community / disko

Declarative disk partitioning and formatting using nix [maintainers=@Lassulus @Enzime @iFreilicht]
MIT License
1.82k stars 194 forks source link

Use a dummy LUKS key file in installTest #306

Open Kranzes opened 1 year ago

Kranzes commented 1 year ago

If in your disko configuraiton you don't use the keyFile option for LUKS and you prefer entering the passphrase interactively, installTest would hang as it will wait for user interaction. I think that for the installTest we should make it set a dummy password if not keyFile is provided, that way the test actually runs.

Lassulus commented 1 year ago

https://github.com/nix-community/disko/pull/314

Kranzes commented 1 year ago

I haven't test this yet but I was thinking that maybe a default behavior would be nice to have when LUKS is detected. If a device that uses LUKS is detected it will automatically set settings.keyFile for it in the test's config.