-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Remove perl dependency in activation scripts #51198
Comments
Is it really an issue? See also #48378 for similar discussion. |
It affects provisioning and boot times of VM's - Am investigating now to what degree, will report back with some results on google cloud platform and others using a tiny image I built today. |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
I made an attempt at rewriting |
Ah the repository should be public now (I forgot about gitlab defaults to creates them as private..) |
I'm all for Rust in general, but I'm not sure we want activation scripts in a compiled language. Activation scripts are one of the few "moving parts" of a NixOS system, and I imagine there are a lot of situations where the ability to easily read, debug, and edit them would help with recovering from weird bugs. I've never personally ended up in such a situation, so it'd be interesting to hear from anyone who has. |
I suppose this is less of a problem if it's just a prebuilt binary configured via arguments/environment/config file/etc instead of something like the current perl script that's partially dynamically generated. |
I marked this as stale due to inactivity. → More info |
@Gaelan So is a Rust pre-built binary something of interest or not worth it at all ? |
I'd love to see this moving forward; this reduces the size of minimal images and helps to boost the maintenance in long term. |
This is now possible thanks to nikstur's work. See #270727 and follow-ups. |
Issue description
Approximately 10 percent of a minimal nixos install is perl, perhaps we could remove this somehow.
Not critical, feel free to close the issue if this is not the right place for that.
Steps to reproduce
Use a config like:
Run
And see the second largest dependency is perl:
Looking further, the two uses of perl are
/nix/store/1hkp2n6hz3ybf2rvkjkwrzgbjkrrakzl-update-users-groups.pl
and /nix/store/vn1xs9s2akf79y1pbya2qldydbf2b22m-setup-etc.pl .
So a few hundred lines of perl are taking up 10 percent of the base install.
The text was updated successfully, but these errors were encountered: