nixos/repart-image: don't pass seed when it's null, update documentation (#419339)

This commit is contained in:
nikstur 2025-06-25 13:52:28 +02:00 committed by GitHub
commit cb51d8f4d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -173,11 +173,13 @@ stdenvNoCC.mkDerivation (
"--architecture=${systemdArch}"
"--dry-run=no"
"--size=auto"
"--seed=${seed}"
"--definitions=${finalAttrs.finalRepartDefinitions}"
"--split=${lib.boolToString split}"
"--json=pretty"
]
++ lib.optionals (seed != null) [
"--seed=${seed}"
]
++ lib.optionals createEmpty [
"--empty=create"
]

View File

@ -161,8 +161,9 @@ in
# Generated with `uuidgen`. Random but fixed to improve reproducibility.
default = "0867da16-f251-457d-a9e8-c31f9a3c220b";
description = ''
A UUID to use as a seed. You can set this to `null` to explicitly
A UUID to use as a seed. You can set this to `random` to explicitly
randomize the partition UUIDs.
See {manpage}`systemd-repart(8)` for more information.
'';
};