Skip to content

Conversation

@Mic92
Copy link

@Mic92 Mic92 commented Dec 26, 2021

The tarball was referring to ncurses, icu and glibc, which blow up the
image to 1.4-1.5GB. With these changes the tarball is shrinked back to
~700MB.

];
contents = [];
contents = [
{ source = image; target = image; }
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would also need this change in nixos-generators: @Lassulus

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should duplicate the code in nixos-generators at some point? but not sure

@Mic92 Mic92 marked this pull request as draft December 26, 2021 19:59
@Mic92
Copy link
Author

Mic92 commented Dec 26, 2021

Some further fixes needed.

The tarball was referring to ncurses, icu and glibc, which blow up the
image to 1.4-1.5GB. With these changes the tarball is shrinked back to
~700MB.
@Mic92 Mic92 marked this pull request as ready for review December 26, 2021 20:15
export PATH=${pkgs.pkgsMusl.kexectools}/bin:${pkgs.pkgsMusl.busybox}/bin
set -x
set -e
export TMPDIR=''${TMPDIR:-/}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this change it also works in chroots.

@Lassulus
Copy link

notice me senpai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants