From 04ed6b37ee4bf1aa04c8eeb163a176f6e7195a1e Mon Sep 17 00:00:00 2001 From: Jybz Date: Fri, 3 Jan 2020 12:22:57 +0100 Subject: [PATCH] Fix no root password --- create_arm_img_urpmi.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/create_arm_img_urpmi.sh b/create_arm_img_urpmi.sh index 25788be..6fa5f69 100755 --- a/create_arm_img_urpmi.sh +++ b/create_arm_img_urpmi.sh @@ -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