Skip to content

Commit

Permalink
Optimized armbian-install script
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Mar 19, 2022
1 parent e5e73a0 commit 1d7c915
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -467,17 +467,17 @@ refactor_files() {
fi
fi

# Edit the uEnv.txt
[ -f "uEnv.txt" ] || error_msg "The uEnv.txt File does not exist."
sed -i "s|LABEL=ROOTFS|UUID=${ROOTFS_UUID}|g" uEnv.txt
sed -i "s|meson.*.dtb|${FDTFILE}|g" uEnv.txt

# For s912-t95z-plus /boot/extlinux/extlinux.conf
[ "${soc}" == "s912-t95z" ] && (
# Edit the uEnv.txt (s912-t95z-plus is /boot/extlinux/extlinux.conf)
if [[ "${soc}" == *s912-t95z* ]]; then
boot_conf_file="extlinux/extlinux.conf"
cp -rf ${configfiles_path}/patches/boot/s912-t95z-plus/* . && sync
sed -i "s|LABEL=ROOTFS|UUID=${ROOTFS_UUID}|g" extlinux/extlinux.conf
sed -i "s|meson.*.dtb|${FDTFILE}|g" extlinux/extlinux.conf
)
else
boot_conf_file="uEnv.txt"
fi
#
[ -f "${boot_conf_file}" ] || error_msg "The [ ${boot_conf_file} ] file does not exist."
sed -i "s|LABEL=ROOTFS|UUID=${ROOTFS_UUID}|g" ${boot_conf_file}
sed -i "s|meson.*.dtb|${FDTFILE}|g" ${boot_conf_file}

# Processing partition files: rootfs
cd ${tag_rootfs}
Expand Down

0 comments on commit 1d7c915

Please sign in to comment.