feat: add extraargs from armbianEnv for mkbootimg
Signed-off-by: CodeChenL <2540735020@qq.com>
This commit is contained in:
parent
5e8cca7279
commit
e6d22be90d
@ -35,7 +35,7 @@ function post_build_image__900_convert_to_abl_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}"
|
||||
declare -g bootimg_cmdline="${BOOTIMG_CMDLINE_EXTRA} root=UUID=${new_rootfs_image_uuid} slot_suffix=${abl_boot_partition_label#boot} ${extraargs}"
|
||||
|
||||
if [ ${#ABL_DTB_LIST[@]} -ne 0 ]; then
|
||||
display_alert "Going to create abl kernel boot image" "${EXTENSION}" "info"
|
||||
|
||||
@ -11,7 +11,7 @@ source /boot/armbianEnv.txt
|
||||
--ramdisk /boot/initrd.img-*-sm8250 \
|
||||
--base 0x0 \
|
||||
--second_offset 0x00f00000 \
|
||||
--cmdline "root=UUID=${new_rootfs_image_uuid} slot_suffix=${abl_boot_partition_label#boot}" \
|
||||
--cmdline "root=UUID=${new_rootfs_image_uuid} slot_suffix=${abl_boot_partition_label#boot} ${extraargs}" \
|
||||
--kernel_offset 0x8000 \
|
||||
--ramdisk_offset 0x1000000 \
|
||||
--tags_offset 0x100 \
|
||||
|
||||
@ -24,7 +24,7 @@ source /boot/armbianEnv.txt
|
||||
--ramdisk /boot/initrd.img-*-sm8250 \
|
||||
--base 0x0 \
|
||||
--second_offset 0x00f00000 \
|
||||
--cmdline "root=UUID=${new_rootfs_image_uuid} slot_suffix=${abl_boot_partition_label#boot}" \
|
||||
--cmdline "root=UUID=${new_rootfs_image_uuid} slot_suffix=${abl_boot_partition_label#boot} ${extraargs}" \
|
||||
--kernel_offset 0x8000 \
|
||||
--ramdisk_offset 0x1000000 \
|
||||
--tags_offset 0x100 \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user