fix: bad sudo, prefer su

This commit is contained in:
ange 2024-05-25 17:11:33 +02:00
parent 55933e6390
commit 0921ba2a4c
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

@ -12,7 +12,7 @@ cp -r ./modules/chroot/ /mnt/
done done
for i in ./chroot/user/*.sh; do for i in ./chroot/user/*.sh; do
arch-chroot /mnt/ sudo -u "$username" bash -x "/$i" arch-chroot /mnt/ su "$username" -c bash -x "/$i"
done done
) )