Skip to content

Commit

Permalink
u-boot-menu: curb logging, no need to emit warn's here
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini authored and igorpecovnik committed Aug 12, 2023
1 parent f0b8102 commit c9b5b74
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extensions/u-boot-menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,19 @@ function pre_umount_final_image__configure_uboot_menu() {
}

# Run it, very late in the game, so all kernels all already installed.
# @TODO: we need a hook that runs before umount_chroot in the core, so we don't need to do it ourselves. what is it?
function pre_umount_final_image__995_run_uboot_update() {
local chroot_target="${MOUNT}"

# Mount the chroot...
mount_chroot "$chroot_target/" # this already handles /boot/efi which is required for it to work.

display_alert "Creating u-boot-menu..." "u-boot-update" "warn"
display_alert "Creating u-boot-menu..." "u-boot-update" "info"
chroot_custom "$chroot_target" u-boot-update || {
exit_with_error "u-boot-update failed!"
}

# Let's show the produced /boot/extlinux/extlinux.conf
display_alert "u-boot-menu configuration" "extlinux.conf" "warn"
display_alert "u-boot-menu configuration" "extlinux.conf" "info"
run_tool_batcat --file-name "/boot/extlinux/extlinux.conf" "${MOUNT}/boot/extlinux/extlinux.conf"

umount_chroot "$chroot_target/"
Expand Down

0 comments on commit c9b5b74

Please sign in to comment.