aboutsummaryrefslogtreecommitdiffstats
path: root/create_arm_img_urpmi.sh
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2020-01-03 12:22:57 +0100
committerJybz <j.biernacki@free.fr>2020-01-03 12:22:57 +0100
commit04ed6b37ee4bf1aa04c8eeb163a176f6e7195a1e (patch)
tree95fda0eef1d2092c453c9037f2b7d3f25b0a5634 /create_arm_img_urpmi.sh
parentc6433201a47a41e5c938e0c7e8a4f86534786122 (diff)
downloadmageia4arm-04ed6b37ee4bf1aa04c8eeb163a176f6e7195a1e.tar
mageia4arm-04ed6b37ee4bf1aa04c8eeb163a176f6e7195a1e.tar.gz
mageia4arm-04ed6b37ee4bf1aa04c8eeb163a176f6e7195a1e.tar.bz2
mageia4arm-04ed6b37ee4bf1aa04c8eeb163a176f6e7195a1e.tar.xz
mageia4arm-04ed6b37ee4bf1aa04c8eeb163a176f6e7195a1e.zip
Fix no root password
Diffstat (limited to 'create_arm_img_urpmi.sh')
-rwxr-xr-xcreate_arm_img_urpmi.sh1
1 files changed, 1 insertions, 0 deletions
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