u-boot-menu: allow avoid using uInitrd, for when the bootloader requires modern initrd.img

This commit is contained in:
Ricardo Pardini
2023-07-02 22:10:47 +02:00
parent 718047cfd7
commit 02d428382b

View File

@@ -32,7 +32,8 @@ function pre_umount_final_image__configure_uboot_menu() {
U_BOOT_PARAMETERS="${SRC_CMDLINE:-"loglevel=7 console=ttyS0"}"
UBOOT_MENU_CONFIGURATION_CMDLINE
if [[ "${NAME_INITRD}" == "uInitrd" ]]; then
# Set EXTLINUX_UINITRD=no force usage of normal initrd even when NAME_INITRD is uInitrd
if [[ "${NAME_INITRD}" == "uInitrd" && "${EXTLINUX_UINITRD:-"yes"}" == "yes" ]]; then
cat <<- UBOOT_MENU_CONFIGURATION_INITRD >> "${MOUNT}/etc/default/u-boot"
U_BOOT_INITRD="uInitrd" # Force usage of /boot/uInitrd-<version> as initrd
UBOOT_MENU_CONFIGURATION_INITRD