Skip to content

Commit

Permalink
u-boot-menu: allow avoid using uInitrd, for when the bootloader requi…
Browse files Browse the repository at this point in the history
…res modern initrd.img
  • Loading branch information
rpardini committed Jul 11, 2023
1 parent a3d21d6 commit ed62709
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/u-boot-menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed62709

Please sign in to comment.