fix: pipe password strings to chpasswd for setting user passwords.

This commit is contained in:
Zeev Diukman 2026-01-18 09:25:43 +02:00
parent 731a6183b9
commit 79ee9fd144

4
z.sh
View file

@ -160,7 +160,7 @@ pacstrap -K /mnt ${packages[@]}
mount -m "$efi_device" /mnt/efi mount -m "$efi_device" /mnt/efi
genfstab -U /mnt > /mnt/etc/fstab genfstab -U /mnt > /mnt/etc/fstab
chrt -- chpasswd "root:root" chrt -- echo 'root:root' | chpasswd
chrt -- useradd -m -G wheel -s /usr/bin/bash zeev chrt -- useradd -m -G wheel -s /usr/bin/bash zeev
chrt -- chpasswd "zeev:zeev" chrt -- echo 'zeev:zeev' | chpasswd
chrt -- echo 'zeev ALL=(ALL:ALL) ALL' > /etc/sudoers.d/zeev chrt -- echo 'zeev ALL=(ALL:ALL) ALL' > /etc/sudoers.d/zeev