This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wget https://github.com/0xbadfca11/miniwsl/releases/download/release3041562/rootfs.tgz | |
# wsl --import guix /guix rootfs.tgz --version 2 | |
# wsl -d guix /bin/busybox sh -c "/mnt/c/sys/misc/guix-infect.sh" | |
mkdir -p /root /etc /tmp /var/run /run /home | |
chmod 1777 /tmp | |
rm /etc/passwd | |
cat <<EOM >> /etc/passwd | |
root:x:0:0:root:/root:/bin/bash | |
guixbuilder01:x:999:999:Guix build user 01:/var/empty:/usr/sbin/nologin |