Fix no root password
This commit is contained in:
parent
c6433201a4
commit
04ed6b37ee
@ -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
|
||||
|
Reference in New Issue
Block a user