Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kexec: reduce closure size #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

storeContents = [
{ object = config.system.build.kexec_script; symlink = "/kexec_nixos"; }
];
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
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