diff --git a/lib/mk.chroot.sh b/lib/mk.chroot.sh index 19978ed..273401c 100755 --- a/lib/mk.chroot.sh +++ b/lib/mk.chroot.sh @@ -196,6 +196,7 @@ EOF set +e ${CHROOTCMD} ${i}/ bash -c "yaourt -S --needed --noconfirm linux" >> "${LOGFILE}.${FUNCNAME}" 2>&1 set -e + # Uncomment if you wish to use the mkpasswd binary from within the chroot... #${CHROOTCMD} ${i}/ bash -c "yaourt -S --needed --noconfirm debian-whois-mkpasswd" >> "${LOGFILE}.${FUNCNAME}" 2>&1 for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done echo -n "Regular packages..." @@ -213,6 +214,8 @@ EOF then ${CHROOTCMD} ${i}/ echo "${REGUSR}:${REGUSR_PASS}" | chpasswd -e fi + # COMMENT THIS LINE IF YOU WANT TO SET A ROOT PASSWORD + ${CHROOTCMD} ${i}/ usermod -L root echo "Done." done