nixos/image/repart: unsafeDiscardReferences.out = true (#347702)

This commit is contained in:
WilliButz 2024-11-06 13:13:36 +01:00 committed by GitHub
commit 4c552eaf72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 8 deletions

View File

@ -101,6 +101,11 @@ in
) // {
__structuredAttrs = true;
# the image will be self-contained so we can drop references
# to the closure that was used to build it
unsafeDiscardReferences.out = true;
nativeBuildInputs = [
systemd
fakeroot

View File

@ -117,10 +117,6 @@ in
# do not prepare the ESP, this is done in the final image
systemdRepartFlags = previousAttrs.systemdRepartFlags ++ [ "--defer-partitions=esp" ];
# the image will be self-contained so we can drop references
# to the closure that was used to build it
unsafeDiscardReferences.out = true;
}
);
@ -210,10 +206,6 @@ in
rm -v repart-output_orig.json
'';
# the image will be self-contained so we can drop references
# to the closure that was used to build it
unsafeDiscardReferences.out = true;
}
);
};