ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

Cannot use `mkarchroot` on ArchWSL

Open blemasle opened this issue 2 years ago • 0 comments

Describe the issue Using mkarchroot fails because of missing cgroups.

To Reproduce mkarchroot testdir base

Failed to create compat systemd cgroup //payload: No such file or directory Failed to attach 1315 to compat systemd cgroup //payload: No such file or directory Failed to create compat systemd cgroup //supervisor: No such file or directory Failed to attach 29 to compat systemd cgroup //supervisor: No such file or directory Failed to chown() cgroup /sys/fs/cgroup/systemd/payload: No such file or directory

As found online, some of the errors can be fixed by running

sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd

But the second typology of errors remains and prevent the command to complete

Failed to attach 2648 to compat systemd cgroup //payload: No such file or directory Failed to attach 1362 to compat systemd cgroup //supervisor: No such file or directory Failed to chown() cgroup /sys/fs/cgroup/systemd/payload: No such file or directory

Expected behavior A new, fonctionnal arch chroot should have been created.

Enviroment:

  • Windows build number: 10.0.22000.613]
  • Security Software: Windows Defender
  • WSL version : 2
  • ArchWSL version : 22.3.18.0
  • ArchWSL Installer type : online
  • Launcher version : wsldl2, version 22020900

Additional context I tried Distrod as well, and the same error occurs with an output similar to the one after the manual mount.

blemasle avatar May 01 '22 08:05 blemasle