diff options
author | Jybz <j.biernacki@free.fr> | 2020-01-05 12:26:18 +0100 |
---|---|---|
committer | Neal Gompa <ngompa13@gmail.com> | 2020-01-05 14:11:26 -0500 |
commit | 86a52fa755c3af47633b4e52950ee863218a80d5 (patch) | |
tree | 5e7cc89474b9c3174cb5e27be8fa62355ecc3266 /create_arm_image.sh | |
parent | e52a9a4871dac8703b043d88233437af66ad726c (diff) | |
download | mageia4arm-86a52fa755c3af47633b4e52950ee863218a80d5.tar mageia4arm-86a52fa755c3af47633b4e52950ee863218a80d5.tar.gz mageia4arm-86a52fa755c3af47633b4e52950ee863218a80d5.tar.bz2 mageia4arm-86a52fa755c3af47633b4e52950ee863218a80d5.tar.xz mageia4arm-86a52fa755c3af47633b4e52950ee863218a80d5.zip |
rpi3b+64b
Diffstat (limited to 'create_arm_image.sh')
-rwxr-xr-x | create_arm_image.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/create_arm_image.sh b/create_arm_image.sh index 5dfbcfb..7fdf25b 100755 --- a/create_arm_image.sh +++ b/create_arm_image.sh @@ -274,27 +274,27 @@ function preparechroot() info "Preparation for setting root and user account" if [ -n "${ROOT_PWD}" ]; then #If root password defined, it will be setted at the end of the chroot of the second_stage_install.sh script - echo -e " /bin/passwd << EOF\n${ROOT_PWD}\n${ROOT_PWD}\nEOF\n" >>"${BUILD_PATH}/second_stage_install.sh" + 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" + 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 echo -e " /sbin/useradd ${ID_USER}\n" >>"${BUILD_PATH}/second_stage_install.sh" if [ -n "${PASSWORD}" ]; then - echo -e " /bin/passwd ${ID_USER} << EOF\n${PASSWORD}\n${PASSWORD}\nEOF" >>"${BUILD_PATH}/second_stage_install.sh" + echo -e "/bin/passwd ${ID_USER} << EOF\n${PASSWORD}\n${PASSWORD}\nEOF" >>"${BUILD_PATH}/second_stage_install.sh" else - echo -e " /bin/passwd -d ${ID_USER}\n" >>"${BUILD_PATH}/second_stage_install.sh" + echo -e "/bin/passwd -d ${ID_USER}\n" >>"${BUILD_PATH}/second_stage_install.sh" fi else info "No user defined, no user account created." fi +# BUG: This line break the default .bashrc file from the package "rootfiles" and the values as PATH (and /usr/sbin programs). # info "Copying skel in root directory" # /bin/rsync -rlptH "${BUILD_PATH}/etc/skel/" "${BUILD_PATH}/root/" -#This line break the default .bashrc file from the package "rootfiles" and the values as PATH (and /usr/sbin programs). postPrepareChroot if [ ${?} -ne 0 ]; then @@ -907,7 +907,7 @@ IMAGE="Mageia-${MAGEIA_VERSION}-${TARGET}${TARGET_VERSION}.img" BOOT="/mnt/boot" ROOT="/mnt/root" BUILD_PATH="${INSTALL_PATH}/build-${TARGET}${TARGET_VERSION}" -ARM_VERSION="armv7hl" +# ARM_VERSION="armv7hl" # Assigne a script for creating a particular target image (rpi, odroid, ...) if [ -e "${CONFIG_PATH}/specialFunctions.sh" ]; then |