| 25 Nov 2022 |
K900 | That just hangs around in the background | 17:56:24 |
psvo | just checked: when you put your locale to /etc/default/locale, the shell spawn by /init will have, not that solves anything, but obviously there's a huge amount of hardcoded paths | 17:56:35 |
psvo | yes, I believe they do | 17:56:50 |
K900 | But that does not help us here because we need PAM on every process | 17:56:52 |
K900 | Because that's how we get LOCALE_ARCHIVE | 17:57:00 |
psvo | could we shim /init? :) | 17:57:28 |
K900 | We already are | 17:57:38 |
K900 | And it's not going to help | 17:57:41 |
K900 | Because they're spawning the shell processes completely outside /init | 17:57:49 |
psvo | we shim /sbin/init, right? | 17:57:53 |
K900 | What we need to do is shim the SHELL | 17:57:55 |
K900 | Oh no we can't shim the WSL /init | 17:58:05 |
K900 | It's bind-mounted from inside the utility distro | 17:58:16 |
Arson Copperflame | Hey, at least we have experience shimming the shell /s | 17:58:46 |
K900 | WE DON'T | 17:58:51 |
K900 | That's the problem | 17:58:54 |
K900 | We now need to shim every user's shell | 17:58:59 |
psvo | yes, but maybe the systemd shim could mount-move is and provide another shim | 17:59:02 |
K900 | And ideally we'd do that automatically | 17:59:06 |
psvo | * yes, but maybe the systemd shim could mount-move it and provide another shim | 17:59:21 |
K900 | I'm not even sure how they invoke that /init | 17:59:35 |
K900 | It is probably easier to shim the shell | 17:59:41 |
K900 | At least for the default user | 17:59:44 |
K900 | Like basically all we need is replace the default shell with
#!/bin/sh
. /etc/set-environment
exec ${realShell}
| 18:00:36 |
K900 | But we can't do that without infinite-recursing | 18:03:45 |
psvo | a workaround could to set WSLENV=LOCALE_ARCHIVE/u and LOCALE_ARCHIVE in windows environment | 18:04:29 |
psvo | * a workaround could be to set WSLENV=LOCALE_ARCHIVE/u and LOCALE_ARCHIVE in windows environment | 18:04:34 |
Arson Copperflame | We need to make a new option for setting the shell then. I absolutely hate it, but I don't see a way around that | 18:04:42 |
K900 | We could upstream something very stupid into nixpkgs | 18:07:24 |
Arson Copperflame | Somtimes I wish I could have a super in nixos modules so that I can transform an option value in place - like with nixpkgs overlays | 18:08:39 |