Skip to content

Commit

Permalink
extension: image-output-abl: fix blank slot_suffix in cmdline
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate authored and igorpecovnik committed Oct 18, 2024
1 parent 6643dba commit d796ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/image-output-abl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d796ace

Please sign in to comment.