Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed to disable systemd-resolved.service. on Nixos #84

Open
GENDRAUD opened this issue Dec 25, 2022 · 0 comments
Open

[Bug]: Failed to disable systemd-resolved.service. on Nixos #84

GENDRAUD opened this issue Dec 25, 2022 · 0 comments

Comments

@GENDRAUD
Copy link

Describe the bug

I try to make my Nixos Distro Run Systemd with the second method.

Steps to reproduce

It'run on my Nixos on wsl.

I do what is written on the paragraph "Option 2: Make your Current Distro Run Systemd"

curl -L -O "https://raw.githubusercontent.com/nullpo-head/wsl-distrod/main/install.sh"
chmod +x install.sh

I've change install.sh
mkdir become mkdir -p in order to fix the following problem: can't create the file
sudo ./install.sh install
It works

/opt/distrod/bin/distrod enable --start-on-windows-boot
doesn't work. I need root permission.

sudo /opt/distrod/bin/distrod enable --start-on-windows-boot

[Distrod][WARN] Faled to disable systemd-resolved.service. Error: Failed to parse unit file '"/etc/systemd/system/systemd-resolved.service"'.

Caused by:
description() is deprecated; use Display: No directives in the file
[Distrod][ERROR] Failed to initialize the rootfs.

Caused by:
0: Failed to create per-user WSL envs load script.
1: Failed to create HostPath("/etc/profile.d/distrod-user-wsl-envs.sh")
2: No such file or directory (os error 2)

It doesn't work. I've already done that with Debian on WSL and it has worked fine. That is a problem specific to Nixos

Expected behavior

No response

Windows version

windows 11

Linux kernel version

Linux nixos 5.15.79.1-microsoft-standard-WSL2 #1 SMP Wed Nov 23 01:01:46 UTC 2022 x86_64 GNU/Linux

Distro

Nixos

How did you install that distro?

Installed by Distrod wizard

Logs

I've used the second option I haven't launch Distrod.
I've tried the first option, but it has worked as I gived the tar.something file but that is another problem.

additional comment

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant