Fix evaluation when a GPT partition is left unformatted

This commit is contained in:
Gary Guo committed 2024-11-25 02:10:48 +00:00
1 parent 47bc8dfb6f
commit 3e83c11038
3 files changed
+48 -1

No files matched your search

+1 -1
View File
@@ -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.