Unverified Commit 4c552eaf authored by WilliButz's avatar WilliButz Committed by GitHub
Browse files

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

parents 99c9b629 1b592cde
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
+0 −8
Original line number Diff line number Diff line
@@ -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;
            }
          );
    };