-
Notifications
You must be signed in to change notification settings - Fork 23
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
base: master
Are you sure you want to change the base?
Conversation
storeContents = [ | ||
{ object = config.system.build.kexec_script; symlink = "/kexec_nixos"; } | ||
]; | ||
contents = []; | ||
contents = [ | ||
{ source = image; target = image; } |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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.
set -x | ||
set -e | ||
export TMPDIR=''${TMPDIR:-/} |
There was a problem hiding this comment.
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.
notice me senpai |
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.