diff --git a/gentoostrap.sh b/gentoostrap.sh index 305926e..bc09f0c 100755 --- a/gentoostrap.sh +++ b/gentoostrap.sh @@ -243,8 +243,10 @@ build-gentoo-chroot() { chmod 0700 /boot/efi # Configure a new user, add him to sudoers - useradd salt -m -G wheel -s /bin/bash -u 1000 -U - passwd salt + if ! id salt > /dev/null 2>&1; then + useradd salt -m -G wheel -s /bin/bash -u 1000 -U + passwd salt + fi # We've made it this far and now the user has to do just a liiiiiitle bit of configuration clear