| 17 Apr 2023 |
K900 | Oh no | 12:47:29 |
K900 | Why are you on EOL Windows? | 12:47:46 |
Nehu | Hmm... ask my company's IT department xD | 12:48:11 |
Nehu | I can try updating windows that said | 12:48:26 |
K900 | You definitely should | 12:48:43 |
Nehu | But afaik they tend to block certain updates for a while | 12:48:48 |
K900 | At the very least, your version is no longer getting security updates | 12:48:52 |
K900 | 19045 is the current build | 12:48:59 |
Nehu | Oh I see... damn, good to know | 12:49:15 |
Nehu | OK so a few very long reboots later, I ended up at windows version 19043.2364 and I can use wsl --system Now, when I run wsl -d NixOS -e /bin/sh as suggested by nzbr (they/it) , I do get a bit more:
wsl -d nixos-testing -e /bin/sh
<3>WSL (8) ERROR: CreateProcessEntryCommon:577: execvpe C:/Users/me/scoop/apps/msys2/2021-04-19/usr/bin/sh failed 2
<3>WSL (8) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
So it seems like it tries to execute something that isn't part of the WSL environment (in this case, the MSys2 version of /sur/bin/sh, which is a windows executable...
| 14:02:23 |
K900 | That is definitely not normal | 14:13:55 |
K900 | And your Windows is still on an old build | 14:14:01 |
K900 | Just a slightly less old one | 14:14:08 |
| 18 Apr 2023 |
Sandro 🐧 | WSL does not startup for me correctly when on https://github.com/nix-community/NixOS-WSL/commit/f3b6f6b04728416c64fc5ef52199fd9b9843c47d
[Tue Apr 18 17:15:45 2023] systemd_shim[1]: /dev/shm is not a symlink, leaving as-is...
[Tue Apr 18 17:15:45 2023] systemd_shim[1]: Remounting / shared...
[Tue Apr 18 17:15:45 2023] systemd_shim[1]: Remounting /nix/store read-only...
[Tue Apr 18 17:15:45 2023] systemd_shim[1]: Running activation script...
[Tue Apr 18 17:15:45 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:45 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:45 2023] setting up /usr/share/applications...
[Tue Apr 18 17:15:45 2023] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[Tue Apr 18 17:15:45 2023] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[Tue Apr 18 17:15:45 2023] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -22
[Tue Apr 18 17:15:45 2023] misc dxg: dxgk: dxgkio_query_adapter_info: Ioctl failed: -2
[Tue Apr 18 17:15:45 2023] setting up /usr/share/icons...
[Tue Apr 18 17:15:45 2023] Deleting all channels...
[Tue Apr 18 17:15:45 2023] Deleting all user profiles...
[Tue Apr 18 17:15:45 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:45 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:45 2023] Can't ignore signal CHLD, forcing to default.
[Tue Apr 18 17:15:45 2023] setting up /etc...
[Tue Apr 18 17:15:46 2023] setting up secrets...
[Tue Apr 18 17:15:46 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:46 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:46 2023] setting up /sbin/init shim...
[Tue Apr 18 17:15:46 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:46 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:46 2023] systemd_shim[1]: Spawning real systemd...
[Tue Apr 18 17:15:46 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:46 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:46 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:46 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:46 2023] systemd-journald[205]: Collecting audit messages is disabled.
[Tue Apr 18 17:15:46 2023] systemd-journald[205]: Received client request to flush runtime journal.
[Tue Apr 18 17:15:47 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:47 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:47 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:47 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:47 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:47 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:47 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:47 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:48 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:48 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:48 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:48 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:48 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:48 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:48 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:48 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:49 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:49 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:49 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:49 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:49 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:49 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:49 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:49 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:50 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:50 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:50 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:50 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:50 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:50 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:50 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:50 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:51 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:51 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:51 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:51 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:51 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:51 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:51 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:51 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:52 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:52 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:52 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:52 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:52 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:52 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:52 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:52 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:53 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:53 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:53 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:53 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:53 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:53 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:53 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:53 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:54 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:54 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:54 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:54 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:54 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:54 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:54 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:54 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:55 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:55 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:55 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:55 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:55 2023] sh: line 1: systemctl: command not found
[Tue Apr 18 17:15:55 2023] sh: line 1: grep: command not found
[Tue Apr 18 17:15:55 2023] WSL (2) ERROR: WaitForBootProcess:3184: /sbin/init failed to start within 10000
[Tue Apr 18 17:15:55 2023] ms
[Tue Apr 18 17:15:55 2023] WSL (2) WARNING: /etc/resolv.conf updating disabled in /etc/wsl.conf
[Tue Apr 18 17:15:55 2023] WSL (2): Creating login session for sandro
[Tue Apr 18 17:16:32 2023] hv_balloon: Max. dynamic memory size: 6144 MB
| 15:20:00 |
Sandro 🐧 | wsl --version
WSL version: 1.2.0.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770
Direct3D version: 1.608.2-61064218
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1413
| 15:24:39 |
K900 | I have a suspicion | 15:28:41 |
K900 | We don't root /bin/sh, do we | 15:28:57 |
Sandro 🐧 | I am not sure tbh | 15:32:07 |
Sandro 🐧 | ▶ ls -lah /bin/sh
lrwxrwxrwx root root 75 B Tue Apr 18 17:27:55 2023 /bin/sh ⇒ /nix/store/pk3kkaafln68gzxawk57qp9m5h5285va-bash-interactive-5.2-p15/bin/sh
| 15:33:07 |
Sandro 🐧 | also I am not sure why I am on 1.2.0.0, I didn't manually update to that and I didn't find a way to downgrade | 15:34:13 |
Sandro 🐧 | I tried going back a couple off commits and removing any of your recent commits did not change anything | 15:35:52 |
K900 | Wait | 15:38:09 |
K900 | Why is your shell symlinked to bash | 15:38:18 |
K900 | And not to the wrapper | 15:38:23 |
Sandro 🐧 | first thought native systemd but when I turn if off, that is still linked to bash | 15:41:38 |
Sandro 🐧 | but things work again | 15:41:42 |
| * Sandro 🐧 facepalms the desk | 15:43:06 |
Sandro 🐧 | populateBin = lib.mkForce false | 15:43:16 |
Sandro 🐧 | I turned that off for testing envfs which is still rather buggy in combination with shell wrappers but forgot to turn that back on or make it dependend on envfs | 15:44:31 |
Sandro 🐧 | and now the obligatory: how did that work the last weeks or even month? | 15:45:38 |