Repository navigation
systemd: drop most patches - #488508
systemd: drop most patches#488508
Conversation
ElvishJerricco
left a comment
There was a problem hiding this comment.
Any functionality being removed needs to be in release notes.
cae1c49 to
88b808f
Compare
Nothing in here IMO qualifies as "functionality being removed" anymore. |
88b808f to
b7e65bf
Compare
SuperSandro2000
left a comment
There was a problem hiding this comment.
I would suggest we remove all the patches which can be clearly removed now and leave the 2 patches which people think are worthwhile for now.
435dbe3 to
fc46834
Compare
fc46834 to
d331286
Compare
…s.patch This is possibile because of the preparations from 4aae99b
This was fixed when we switched to patching dlopen.
…sy.patch This is entirely a "usability" patch which as per the new patch policy is not allowed.
…alled systemd units
|
My suggestion to get this merged is:
|
|
|
||
| -# Ignore encrypted devices with no identified superblock on it, since | ||
| -# we are probably still calling mke2fs or mkswap on it. | ||
| -SUBSYSTEM=="block", ENV{DM_UUID}=="CRYPT-*", ENV{ID_PART_TABLE_TYPE}=="", ENV{ID_FS_USAGE}=="", ENV{SYSTEMD_READY}="0" |
There was a problem hiding this comment.
Dropping this patch actually breaks booting with systemd while using a password-encrypted luks volume as a key-file to another luks volume (which is where the root file system is).
Fixing this breakage by bringing the patch back in #525118
There was a problem hiding this comment.
I ran into this as well. Took me 4h to end up here, and glad to find I'm not alone :)
Adding the fix below to hardware-configuration.nix solved it for me (note the 99-zz prefix to make sure the rule comes last)
boot.initrd.services.udev.packages = [
(pkgs.writeTextDir "etc/udev/rules.d/99-zz-cryptkey-ready.rules" ''
SUBSYSTEM=="block", ENV{DM_UUID}=="CRYPT-*", ENV{DM_NAME}=="cryptkey", ENV{SYSTEMD_READY}="1"
'')
];
There was a problem hiding this comment.
Another one here. Took some head scratching for me and I ended up with similar solution mentioned in previous comment. Lovely
There was a problem hiding this comment.
Noticed on my quest to make Lix buildable against multiple nixpkgs' to provide pre-warmed caches for the flake on AFNix's Hydra. `pkgs.systemd` has a new patch policy[1] that only allows patches for hotfixes and fundamental incompatibilities. As such, the patch that allows nspawn workloads to start without a `/usr/bin` was removed with the recommendation to create that stub yourself. [1] NixOS/nixpkgs#488508 Change-Id: Iaa35ae3b8971867f12daeac5f94958c20a7d9233
Since NixOS#488508 was merged, systemd nspawn now expects /usr to exist in the rootfs before it will start a container. Create the /usr directory in the relevant containers throughout this test.
This adds a patch policy to systemd that @arianvp and I came up with.
Based on this policy, I removed most patches. See the commit messages for more details.
This will bring us much closer to a "vanilla" systemd build making maintenance easier and enables faster systemd updates. It also will make it easier for NixOS users to hack on systemd itself.
This is quite important right now because systemd has sped up their release cadence. They will release versions much quicker and thus we also need to become much faster in our packaging.
See #80038 for some earlier discussions of the patches. This PR brings us closer to the goal formulated there.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.