Skip to content

Commit

Permalink
nixos/image/repart: unsafeDiscardReferences.out = true
Browse files Browse the repository at this point in the history
Lets set this in the repart module instead of the verity module
  • Loading branch information
arianvp committed Oct 10, 2024
1 parent 9fd89c0 commit 1b592cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions nixos/modules/image/repart-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions nixos/modules/image/repart-verity-store.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
);

Expand Down Expand Up @@ -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;
}
);
};
Expand Down

0 comments on commit 1b592cd

Please sign in to comment.