diff --git a/lib/01-mk.chroot.func.sh b/lib/01-mk.chroot.func.sh index 440706a..2c49e45 100755 --- a/lib/01-mk.chroot.func.sh +++ b/lib/01-mk.chroot.func.sh @@ -276,7 +276,7 @@ EOF ${CHROOTCMD} ${i}/ passwd -d ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1 mkdir -p ${i}/etc/sudoers.d ; chmod 750 ${i}/etc/sudoers.d echo "${REGUSR} ALL=(ALL) ALL" >> ${i}/etc/sudoers.d/${REGUSR} - if [ -n "${REGUSR_PASS}" ]; + if [[ -n "${REGUSR_PASS}" && "${REGUSER_PASS}" != '{[BLANK]}' ]]; then #${CHROOTCMD} ${i}/ "/usr/bin/echo ${REGUSR}:${REGUSR_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1 sed -i -e "s|^${REGUSR}::|${REGUSR}:${REGUSR_PASS}:|g" ${i}/etc/shadow @@ -286,7 +286,7 @@ EOF else ${CHROOTCMD} ${i}/ usermod -L ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1 fi - if [ -n "${ROOT_PASS}" ]; + if [[ -n "${ROOT_PASS}" && "${ROOT_PASS}" != '{[BLANK]}' ]]; then #${CHROOTCMD} ${i}/ "/usr/bin/echo root:${ROOT_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1 sed -i -e "s|^root::|root:${ROOT_PASS}:|g" ${i}/etc/shadow diff --git a/src/ipxe b/src/ipxe index ae7f22e..989fe14 160000 --- a/src/ipxe +++ b/src/ipxe @@ -1 +1 @@ -Subproject commit ae7f22eb28dbfdd0e4743a2d9e7aa33344a07246 +Subproject commit 989fe14ccd35454fc14b7717106c8d65c33ba1ea