| 14 Apr 2023 |
Arson Copperflame | True, but it's less likely that they brick both | 15:06:15 |
K900 | Maybe we should have some nixos-enter-esque script in a known location so you can run it from the mariner-cbl container | 15:07:28 |
K900 | And then fix your system from there | 15:07:34 |
Arson Copperflame | I think I put something like that into the DistroLauncher branch. The idea is that you can run nixos rescue to get a shell | 15:08:59 |
| 15 Apr 2023 |
K900 | Ugh | 17:41:41 |
K900 | So my /bin/sh change broke things | 17:41:54 |
K900 | Or not | 17:50:01 |
K900 | I am confuse | 17:50:03 |
K900 | It did | 17:58:13 |
K900 | Fix: https://github.com/nix-community/NixOS-WSL/commit/f3b6f6b04728416c64fc5ef52199fd9b9843c47d | 17:58:15 |
K900 | (pushed again because it's a very non-obvious bug that causes very non-obvious explosions) | 17:58:27 |
| 16 Apr 2023 |
| ian luo joined the room. | 02:26:46 |
| Yuddite Pilot changed their profile picture. | 23:09:22 |
| 17 Apr 2023 |
Nehu | In reply to @nzbr:nzbr.de
Can you still get a shell? If not, try the following:
wsl -d NixOS -e /bin/sh -c '/nix/var/nix/profiles/system/activate; source /etc/set-environment; bash -l'
From there you can edit the configuration and rebuild with nixos-rebuild boot (switch won't work). Then run wsl -t NixOS and try starting it again
Sorry for the late answer. No, I can't get a shell... The command you provided silently fails. If I try to enter "normally", I end up with the following:
wsl -d nixos-testing
Copying /usr/share/applications
Copying /usr/share/icons
rsync: [sender] change_dir "/nix/store/i2cy643r2znpj8bji5f67z3nyb8mwws9-nixos-system-nixos-22.11.3667.87edbd74246/sw/share/icons" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1327) [sender=3.2.6]
Activation script snippet 'copy-launchers' failed (23)
setting up /etc...
setting up /bin...
| 12:38:51 |
K900 | We really need to fix the setup process... | 12:39:58 |
K900 | So this doesn't happen | 12:40:08 |
Arson Copperflame | Not dying when the activation script fails would be a good first step | 12:40:46 |
Arson Copperflame | The code that currently handles this for syschdemd will be replaced by the rust wrapper anyway | 12:41:23 |
K900 | The easiest way I can think of to unscrew this would probably be to install from the latest installer | 12:41:28 |
K900 | In reply to@nzbr:nzbr.de Not dying when the activation script fails would be a good first step The native systemd wrapper tries to | 12:41:36 |
Arson Copperflame | In reply to @nehu:matrix.org
Sorry for the late answer. No, I can't get a shell... The command you provided silently fails. If I try to enter "normally", I end up with the following:
wsl -d nixos-testing
Copying /usr/share/applications
Copying /usr/share/icons
rsync: [sender] change_dir "/nix/store/i2cy643r2znpj8bji5f67z3nyb8mwws9-nixos-system-nixos-22.11.3667.87edbd74246/sw/share/icons" failed: No such file or directory (2)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1327) [sender=3.2.6]
Activation script snippet 'copy-launchers' failed (23)
setting up /etc...
setting up /bin...
Can you get a shell with just wsl -d NixOS -e /bin/sh? | 12:42:35 |
K900 | Or just get the latest installer from here: https://github.com/nix-community/NixOS-WSL/actions/runs/4709079886 | 12:43:19 |
Nehu | In reply to @nzbr:nzbr.de Can you get a shell with just wsl -d NixOS -e /bin/sh? Silently fails :( | 12:43:23 |
Nehu | In reply to @nzbr:nzbr.de Can you get a shell with just wsl -d NixOS -e /bin/sh? * Silently fails (with exit code 1) :( | 12:43:52 |
Arson Copperflame | Okay, that doesn't sound right at all...
What about wsl -d NixOS --system? | 12:44:11 |
Nehu | In reply to @nzbr:nzbr.de Okay, that doesn't sound right at all...
What about wsl -d NixOS --system? Complains about "--system" not being a valid WSL option and returns exit code 127 | 12:46:06 |
K900 | Which WSL version are you on? | 12:46:20 |
Nehu | Hmm, how do I check that again?
I can tell the windows version is 19043.1645 | 12:47:10 |
K900 | Oh no | 12:47:29 |
K900 | Why are you on EOL Windows? | 12:47:46 |