| 19 Oct 2025 |
matthewcroughan | something somewhere in nixos must be overriding that | 13:11:39 |
matthewcroughan | the net result is two util-lnux's in the closure even if the main one is minimal | 13:11:52 |
matthewcroughan | modules/system/boot/loader/systemd-boot/systemd-boot.nix
79: ${pkgs.util-linuxMinimal}/bin/findmnt ${efiSysMountPoint} > /dev/null || fail efiSysMountPoint ${efiSysMountPoint}
81: "${pkgs.util-linuxMinimal}/bin/findmnt ${cfg.xbootldrMountPoint} > /dev/null || fail xbootldrMountPoint ${cfg.xbootldrMountPoint}"
| 13:12:27 |
matthewcroughan | Yup.. made them align, now I'm good | 13:15:39 |
matthewcroughan |  Download image.png | 13:15:41 |
matthewcroughan |  Download image.png | 13:30:41 |
matthewcroughan | hmm, why does the initrd depend on shadow | 13:31:01 |
matthewcroughan | it's initrd-shells but I can't find this in nixpkgs as a string | 13:33:23 |
matthewcroughan | this is with bashless though, so boot.initrd.shell.enable should be false | 13:34:44 |
matthewcroughan | and it is, so this is a weird inclusion | 13:34:50 |
Grimmauld (any/all) | matthewcroughan: i have copied the nixosTests.login and added security.enableWrappers = false + pwaccess stuff, and the test is succeeding. Its screaming at me and i am definitely doing things wrong, but this might be progress?
Bad news is, pwaccess uses fgetspent / fgetspent which are unavailable on musl. Not sure yet how i'll fix that pain
| 16:20:42 |
Grimmauld (any/all) | * matthewcroughan: i have copied the nixosTests.login and added security.enableWrappers = false + pwaccess stuff, and the test is succeeding. Its screaming at me and i am definitely doing things wrong, but this might be progress?
Bad news is, pwaccess uses fgetspent_r / fgetspent_r which are unavailable on musl. Not sure yet how i'll fix that pain
| 16:21:32 |
Grimmauld (any/all) | Anyways, my WIP tree is at https://github.com/NixOS/nixpkgs/pull/453557, opened a draft PR to track this. | 16:32:20 |
dramforever | there's like one thread https://inbox.vuxu.org/musl/4ac5ac1b-217f-442f-fc35-bfbf015287bb@adelielinux.org/ | 16:36:30 |
dramforever | good lord is the official openwall mailing list site unusable | 16:37:01 |
dramforever | or maybe i'm spoiled by whatever this superior mailing list archive viewer is | 16:38:30 |
dramforever | apparently it's just called public-inbox | 16:39:10 |
Grimmauld (any/all) | so uh, one thread in 2019 and nothing since? | 16:47:06 |
Grimmauld (any/all) | Thats kinda disappointing | 16:47:12 |
dramforever | there's an implementation https://inbox.vuxu.org/musl/20190120154154.GA23924@voyager/ | 16:47:52 |
dramforever | with the best line of code i've seen this week
size = INT_MAX; //2GB ought to be enough for anyone
| 16:48:29 |
Grimmauld (any/all) | Yeah, i found that a few hours ago, alpine uses that: https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.22-stable/community/accountsservice/musl-fgetspent_r.patch
But fgetpwent_r is broken the same way
| 16:49:07 |
dramforever | unfortunately it does seem that you need to patch musl to get it | 16:49:08 |
Grimmauld (any/all) | its just a shim, i can inline the shim | 16:49:27 |
dramforever | okay you tricked me you wrote fgetspent_r twice 😆 | 16:49:49 |
Grimmauld (any/all) | * Yeah, i found that a few hours ago, alpine uses something like that: https://gitlab.alpinelinux.org/alpine/aports/-/blob/3.22-stable/community/accountsservice/musl-fgetspent_r.patch
But fgetpwent_r is broken the same way
| 16:49:54 |
Grimmauld (any/all) | OH | 16:49:59 |
Grimmauld (any/all) | shit | 16:50:00 |
Grimmauld (any/all) | sorry | 16:50:04 |
Grimmauld (any/all) | * matthewcroughan: i have copied the nixosTests.login and added security.enableWrappers = false + pwaccess stuff, and the test is succeeding. Its screaming at me and i am definitely doing things wrong, but this might be progress?
Bad news is, pwaccess uses fgetspent_r / ~~fgetspent_r~~ fgetpwent_r which are unavailable on musl. Not sure yet how i'll fix that pain
| 16:50:18 |