From 268ea8ad489c3d5d1babfddb403434d73d17d157 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Sat, 26 Feb 2022 00:37:30 +0700 Subject: [PATCH] kernel.filetrigger: add option --u-boot, if /sys/firmware/devicetree exists u-boot has EFI mode, and in this mode dtb can boot from /boot/dtb/. Since u-boot can boot the same system both through extlinux.conf and through EFI, it will not be superfluous to update extlinux.conf if it exists. Also, when installing on a system with u-boot, you need to create a symlink /boot/dtb so that the actual dtb is loaded. --- kernel.filetrigger | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.filetrigger b/kernel.filetrigger index aa794cc..c362935 100755 --- a/kernel.filetrigger +++ b/kernel.filetrigger @@ -23,7 +23,7 @@ elif [ "$INITRD_AUTOUPDATE" = none ]; then KEEP_INITRD=--keep-initrd fi -if [ -d /sys/firmware/devicetree -a ! -d /sys/firmware/efi ]; then +if [ -d /sys/firmware/devicetree ]; then WITH_UBOOT=--uboot INSTALLKERNEL_ARGS="$INSTALLKERNEL_ARGS ${WITH_UBOOT}" fi -- 2.33.0