Skip to content

Commit cb51d8f

Browse files
authored
nixos/repart-image: don't pass seed when it's null, update documentation (#419339)
2 parents fb2c741 + ed5f0fb commit cb51d8f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

nixos/modules/image/repart-image.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,13 @@ stdenvNoCC.mkDerivation (
173173
"--architecture=${systemdArch}"
174174
"--dry-run=no"
175175
"--size=auto"
176-
"--seed=${seed}"
177176
"--definitions=${finalAttrs.finalRepartDefinitions}"
178177
"--split=${lib.boolToString split}"
179178
"--json=pretty"
180179
]
180+
++ lib.optionals (seed != null) [
181+
"--seed=${seed}"
182+
]
181183
++ lib.optionals createEmpty [
182184
"--empty=create"
183185
]

nixos/modules/image/repart.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ in
161161
# Generated with `uuidgen`. Random but fixed to improve reproducibility.
162162
default = "0867da16-f251-457d-a9e8-c31f9a3c220b";
163163
description = ''
164-
A UUID to use as a seed. You can set this to `null` to explicitly
164+
A UUID to use as a seed. You can set this to `random` to explicitly
165165
randomize the partition UUIDs.
166+
See {manpage}`systemd-repart(8)` for more information.
166167
'';
167168
};
168169

0 commit comments

Comments
 (0)