!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

342 Members
https://github.com/nix-community/NixOS-WSL59 Servers

Load older messages


SenderMessageTime
29 Jan 2023
@k900:0upti.meK900I guess they don't link it with the systemd rule anymore15:38:59
30 Jan 2023
@k900:0upti.meK900https://github.com/nix-community/NixOS-WSL/commit/bbfe6ad9b877935ee74c98030193e557bcfed35405:58:22
@k900:0upti.meK900Ugh05:58:23
@k900:0upti.meK900Had to push directly to master05:58:27
@k900:0upti.meK900And another followup fix: https://github.com/nix-community/NixOS-WSL/pull/20805:59:14
@nzbr:nzbr.deArson Copperflame
In reply to @k900:0upti.me
https://github.com/nix-community/NixOS-WSL/commit/bbfe6ad9b877935ee74c98030193e557bcfed354
Both the default config as well as my config change that, therefore I forgot to update it here. So that one's my bad
09:04:07
@k900:0upti.meK900At least mine didn't so I spotted it immediately 09:07:34
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
sent an image.
I could test it on wsl but I don't have that much time tbh
10:48:56
@k900:0upti.meK900Maybe wait for the staging merge then10:49:24
@k900:0upti.meK900That should have dzn by default10:50:09
@k900:0upti.meK900You'll still need to figure out the right LD_PRELOAD incantation though10:50:21
@sandro:supersandro.deSandro 🐧

K900: maybe something little to make a little bit nicer

 ▶ RUST_BACKTRACE=full /bin/init
thread 'main' panicked at 'Failed to set up logger...: Io(Os { code: 13, kind: PermissionDenied, message: "Permission denied" })', src/main.rs:126:21
stack backtrace:
   0: rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: nixos_wsl_native_systemd_shim::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
13:53:25
@k900:0upti.meK900Oh wow how did you even do that13:53:43
@k900:0upti.meK900Or do you just mean running the shim with RUST_BACKTRACE=full in general?13:54:37
@k900:0upti.meK900That's not going to be very useful, we don't ever panic 13:54:56
@k900:0upti.meK900All the errors bubble up to main and THEN panic13:55:13
@k900:0upti.meK900So the backtrace will look exactly like this every time13:55:23
@k900:0upti.meK900But the error object itself will preserve context13:55:35
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
Oh wow how did you even do that
run it as normal user through envfs
14:03:09
@k900:0upti.meK900Oh14:03:13
@k900:0upti.meK900Yeah that makes sense14:03:16
@k900:0upti.meK900The very first thing it does is open /dev/kmsg14:03:25
@k900:0upti.meK900Because that's pretty much the only place we can log to that is reasonably user-accessible14:03:51
@k900:0upti.meK900And this is also the only place we panic14:04:29
@k900:0upti.meK900If anything after this fails, it goes into kmsg14:04:42
@k900:0upti.meK900Actually maybe we should make the shim explode if it's not running as pid114:06:14
@k900:0upti.meK900Also I just realized this isn't entirely accurate14:06:57
@k900:0upti.meK900 We can also panic if there's no argv[0] 14:07:06
@k900:0upti.meK900 But that should definitely never happen if we're init 14:07:12
@sandro:supersandro.deSandro 🐧Do we still need https://github.com/nix-community/NixOS-WSL/blob/main/modules/wsl-distro.nix#L65-L68 ? For me wslpath from /bin is used14:09:33

Show newer messages


Back to Room ListRoom Version: 9