mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
Fix evaluation when a GPT partition is left unformatted
This commit is contained in:
1 parent
47bc8dfb6f
commit
3e83c11038
3 files changed
+48
-1
No files matched your search
+1
-1
@@ -26,7 +26,7 @@ in
|
||||
lib.types.either
|
||||
(lib.types.strMatching (hexPattern 4))
|
||||
(lib.types.strMatching (lib.concatMapStringsSep "-" hexPattern [ 8 4 4 4 12 ]));
|
||||
default = if partition.config.content.type == "swap" then "8200" else "8300";
|
||||
default = if partition.config.content != null && partition.config.content.type == "swap" then "8200" else "8300";
|
||||
defaultText = ''8300 (Linux filesystem) normally, 8200 (Linux swap) if content.type is "swap"'';
|
||||
description = ''
|
||||
Filesystem type to use.
|
||||
|
||||
Reference in new issue
Block a user