!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

347 Members
https://github.com/nix-community/NixOS-WSL61 Servers

Load older messages


SenderMessageTime
17 Apr 2023
@nehu:matrix.orgNehu

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:0upti.meK900That is definitely not normal 14:13:55
@k900:0upti.meK900And your Windows is still on an old build 14:14:01
@k900:0upti.meK900Just a slightly less old one 14:14:08
18 Apr 2023
@sandro:supersandro.deSandro ๐Ÿง

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:supersandro.deSandro ๐Ÿง
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:0upti.meK900I have a suspicion15:28:41
@k900:0upti.meK900We don't root /bin/sh, do we15:28:57
@sandro:supersandro.deSandro ๐ŸงI am not sure tbh15:32:07
@sandro:supersandro.deSandro ๐Ÿง
 โ–ถ 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:supersandro.deSandro ๐Ÿง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 downgrade15:34:13
@sandro:supersandro.deSandro ๐ŸงI tried going back a couple off commits and removing any of your recent commits did not change anything15:35:52
@k900:0upti.meK900Wait 15:38:09
@k900:0upti.meK900Why is your shell symlinked to bash 15:38:18
@k900:0upti.meK900And not to the wrapper 15:38:23
@sandro:supersandro.deSandro ๐Ÿงfirst thought native systemd but when I turn if off, that is still linked to bash15:41:38
@sandro:supersandro.deSandro ๐Ÿงbut things work again15:41:42
* @sandro:supersandro.deSandro ๐Ÿง facepalms the desk15:43:06
@sandro:supersandro.deSandro ๐Ÿง populateBin = lib.mkForce false 15:43:16
@sandro:supersandro.deSandro ๐Ÿง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 envfs15:44:31
@sandro:supersandro.deSandro ๐Ÿงand now the obligatory: how did that work the last weeks or even month?15:45:38
@k900:0upti.meK900You didn't GC maybe? 16:38:47
20 Apr 2023
@federicodschonborn:matrix.orgFederico Schonborn changed their display name from Federico Damiรกn Schonborn to Federico Schonborn.01:02:18
@shawn8901:matrix.orgshawn8901 joined the room.17:20:46
21 Apr 2023
@isa:flauschekatze.spaceisa joined the room.17:14:58
23 Apr 2023
@denna:matrix.orgolaf left the room.12:48:19
24 Apr 2023
@emilytrau:matrix.orgemilytrau changed their display name from emilytrau (she/her) to emilytrau.08:37:36
@sandro:supersandro.deSandro ๐Ÿง
In reply to @k900:0upti.me
You didn't GC maybe?
that is on a systemd timer
11:26:53
25 Apr 2023
@alethkit:matrix.orgalethkit joined the room.18:20:57
@alethkit:matrix.orgalethkitIs the latest installer meant to be the one from August of 2022?18:24:17

There are no newer messages yet.


Back to Room ListRoom Version: 9