Skip to content

Commit 0306245

Browse files
committed
bootable: u-boot: extlinux/boot.scr: handle tink-related kernel args
- using `fill_array_bootable_tinkerbell_kernel_parameters()` Signed-off-by: Ricardo Pardini <[email protected]>
1 parent dad34ae commit 0306245

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bash/bootable/armbian-u-boot.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,18 @@ function write_uboot_extlinux() {
233233
declare bootargs="${UBOOT_EXTLINUX_CMDLINE} console=${UBOOT_KERNEL_SERIALCON}${console_extra_args}"
234234
log info "Writing extlinux.conf; kernel cmdline: ${bootargs}"
235235

236+
declare -g -a bootable_tinkerbell_kernel_params=()
237+
fill_array_bootable_tinkerbell_kernel_parameters "${BOARD}"
238+
declare tinkerbell_args="${bootable_tinkerbell_kernel_params[*]}"
239+
236240
mkdir -p "${fat32_root_dir}/extlinux"
237241
declare extlinux_conf="${fat32_root_dir}/extlinux/extlinux.conf"
238242
cat <<- EXTLINUX_CONF > "${extlinux_conf}"
239243
DEFAULT hook
240244
LABEL hook
241245
linux /vmlinuz
242246
initrd /initramfs
243-
append ${bootargs}
247+
append ${bootargs} ${tinkerbell_args}
244248
fdt /dtb/${UBOOT_KERNEL_DTB}
245249
EXTLINUX_CONF
246250
# @TODO: fdtdir when UBOOT_KERNEL_DTB is unset

0 commit comments

Comments
 (0)