diff --git a/archlinux/preconf.sh b/archlinux/preconf.sh index 532b212..f7a2d10 100644 --- a/archlinux/preconf.sh +++ b/archlinux/preconf.sh @@ -20,7 +20,7 @@ EOF arch-chroot /mnt /bin/bash << 'EOF' useradd -m -g wheel -s /bin/bash user -echo -e "pass" | passwd user +echo "pass" | passwd --stdin user echo -e "[boot]\nsystemd=true\n[user]\ndefault=user" > /etc/wsl.conf diff --git a/debian/preconf.sh b/debian/preconf.sh index ca1e700..f00e4f2 100644 --- a/debian/preconf.sh +++ b/debian/preconf.sh @@ -25,7 +25,7 @@ EOF chroot /work /bin/bash << 'EOF' adduser --disabled-password --gecos "" user adduser user sudo -echo -e "pass" | passwd user +echo "pass" | passwd --stdin user echo -e "[boot]\nsystemd=true\n[user]\ndefault=user" > /etc/wsl.conf diff --git a/ubuntu/preconf.sh b/ubuntu/preconf.sh index 4acad25..3450efd 100644 --- a/ubuntu/preconf.sh +++ b/ubuntu/preconf.sh @@ -25,7 +25,7 @@ EOF chroot /work /bin/bash << 'EOF' adduser --disabled-password --gecos "" user adduser user sudo -echo -e "pass" | passwd user +echo "pass" | passwd --stdin user echo -e "[boot]\nsystemd=true\n[user]\ndefault=user" > /etc/wsl.conf