From d796acea821774a27b4c860b550f4ebd0d895ad5 Mon Sep 17 00:00:00 2001 From: amazingfate Date: Thu, 17 Oct 2024 19:47:53 +0800 Subject: [PATCH] extension: image-output-abl: fix blank slot_suffix in cmdline --- extensions/image-output-abl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/image-output-abl.sh b/extensions/image-output-abl.sh index 099593d3ae5d..ad4d3e4a906d 100644 --- a/extensions/image-output-abl.sh +++ b/extensions/image-output-abl.sh @@ -29,11 +29,11 @@ function post_build_image__900_convert_to_abl_img() { rm ${DESTIMG}/${version}.img display_alert "Replace root partition uuid from ${old_rootfs_image_uuid} to ${new_rootfs_image_uuid} in /etc/fstab" "${EXTENSION}" "info" sed -i "s|${old_rootfs_image_uuid}|${new_rootfs_image_uuid}|g" ${new_rootfs_image_mount_dir}/etc/fstab + source ${new_rootfs_image_mount_dir}/boot/armbianEnv.txt declare -g bootimg_cmdline="${BOOTIMG_CMDLINE_EXTRA} root=UUID=${new_rootfs_image_uuid} slot_suffix=${abl_boot_partition_label#boot}" if [ ${#ABL_DTB_LIST[@]} -ne 0 ]; then display_alert "Going to create abl kernel boot image" "${EXTENSION}" "info" - source ${new_rootfs_image_mount_dir}/boot/armbianEnv.txt gzip -c ${new_rootfs_image_mount_dir}/boot/vmlinuz-*-* > ${DESTIMG}/Image.gz for dtb_name in "${ABL_DTB_LIST[@]}"; do display_alert "Creatng abl kernel boot image with dtb ${dtb_name} and cmdline ${bootimg_cmdline} " "${EXTENSION}" "info"