lucyllewy / one-script-wsl2-systemd

The one-script variant of the systemd hack for WSL2
MIT License
231 stars 38 forks source link

00-wsl2-systemd.sh: Permission denied #8

Closed Christian-Rau closed 2 years ago

Christian-Rau commented 3 years ago

After running the script, and booting up distro (ubuntu-20.04 I get permission denied.

chmod on the 00-wsl2-systemd.sh says -rw-r--r-- 1 root root

Changed permission to chmod 0755 /etc/profile.d/00-wsl2-systemd.sh and the script ran. Then when starting the distro I see a blinking curser, and at one point I found this error: rm: cannot remove '/mnt/c/users/john/.ubuntu/doe/.systemd.env'

Errors when trying to reset with: powershell.exe: ScriptBlock should only be specified as a value of the Command parameter. or from within bash. Black screen.

I made 10 various attempts to figure out where the problem might be, but with no luck. such a shame..

lucyllewy commented 3 years ago

Did you run the script from the default branch here on GitHub, or from the build-21286+ branch? Most development effort is focused on the latter, which is currently only suitable for the Insider Builds of Windows, so I might have left a broken copy in the main branch.

Christian-Rau commented 3 years ago

Yes I ran it from the default branch, I kind of suspected that might be the issue.

From: Daniel @.> Sent: Monday, 10 May 2021 20.06 To: @.> Cc: Christian @.>; @.> Subject: Re: [diddledan/one-script-wsl2-systemd] 00-wsl2-systemd.sh: Permission denied (#8)

Did you run the script from the default branch here on GitHub, or from the build-21286+ branch? Most development effort is focused on the latter, which is currently only suitable for the Insider Builds of Windows, so I might have left a broken copy in the main branch.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/diddledan/one-script-wsl2-systemd/issues/8#issuecomment-837065714, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALVI6FSUIFMJODSDLRTZCKTTNAOANANCNFSM44G43GKA.

lucyllewy commented 3 years ago

Can you try again using the main branch. There have been several improvements, and it might be fixed now.

lucyllewy commented 2 years ago

You didn't reply to my request for a retest, so I'm going to close the issue as I think it is working correctly. Please reopen if there is still an issue.