-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
specialisation: limit the allowed characters in specialisation names #333952
Conversation
Since the systemd boot counting PR was merged, dashes in specialisation names cause issues when installing the boot loader entries, since dashes are also used as separator for the different components of the file name of the boot loader entries on disk. The assertion avoids this footgun which is pretty annoying to recover from.
@ofborg test nixos-rebuild-specialisations |
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.
SGTM
This broke the ACME test:
|
Looks like we might want to convert these to underscores. |
EDIT: should get fixed by #334379 |
It's interesting this PR, newer than #333857, while having a broken solution, got merged first. And even almost hit nixos-unstable. Release notes would have been cool. Add a test for "rebuilding-specialisations" too. |
I already spoke with @JulienMalka in private and apologized for being a bit too trigger-happy here. Didn't expect this to cause a lot of regressions, and I was wrong. Sorry. |
Description of changes
Since the systemd boot counting PR was merged, dashes in specialisation names cause issues when installing the boot loader entries, since dashes are also used as separator for the different components of the file name of the boot loader entries on disk.
The assertion avoids this footgun which is pretty annoying to recover from.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.