1
0

Fix no root password

This commit is contained in:
Jybz 2020-01-03 12:22:57 +01:00
parent c6433201a4
commit 04ed6b37ee

View File

@ -236,6 +236,7 @@ function preparechroot()
echo -e " /bin/passwd << EOF\n${ROOT_PWD}\n${ROOT_PWD}\nEOF\n" >>"${BUILD_PATH}/second_stage_install.sh"
else
info "No root password... One password will be set at the first login."
echo -e " /bin/passwd -d root\n /bin/passwd -e root\n" >>"${BUILD_PATH}/second_stage_install.sh"
fi
if [ -n "${ID_USER}" ]; then #If user ID defined, it will be setted at the end of the chroot of the second_stage_install.sh script