diff -Nru flash-kernel-3.104ubuntu16/debian/changelog flash-kernel-3.104ubuntu16ppa1/debian/changelog --- flash-kernel-3.104ubuntu16/debian/changelog 2023-01-19 07:48:53.000000000 +0000 +++ flash-kernel-3.104ubuntu16ppa1/debian/changelog 2023-03-14 08:13:11.000000000 +0000 @@ -1,3 +1,10 @@ +flash-kernel (3.104ubuntu16ppa1) jammy; urgency=medium + + * Skip EFI detection mechanism when the FK_FORCE_EFI environment + variable is set to "yes". + + -- Isaac True Tue, 14 Mar 2023 08:13:11 +0000 + flash-kernel (3.104ubuntu16) jammy; urgency=medium * Add support for Xilinx Versal VCK190 (LP: #2006558) diff -Nru flash-kernel-3.104ubuntu16/flash-kernel.8 flash-kernel-3.104ubuntu16ppa1/flash-kernel.8 --- flash-kernel-3.104ubuntu16/flash-kernel.8 2023-01-19 07:48:53.000000000 +0000 +++ flash-kernel-3.104ubuntu16ppa1/flash-kernel.8 2023-03-14 08:13:09.000000000 +0000 @@ -40,6 +40,10 @@ .B choice of machine may cause host filesystem partitions to be mounted and .B modified. +.IP FK_FORCE_EFI +Skip EFI detection when this variable is set to `yes'. Normally, flash-kernel +will abort if it detects that the system is running in EFI mode. + .SH FILES .TP .B /usr/share/flash-kernel/db/all.db diff -Nru flash-kernel-3.104ubuntu16/functions flash-kernel-3.104ubuntu16ppa1/functions --- flash-kernel-3.104ubuntu16/functions 2023-01-19 07:48:53.000000000 +0000 +++ flash-kernel-3.104ubuntu16ppa1/functions 2023-03-14 08:13:09.000000000 +0000 @@ -1019,7 +1019,7 @@ kfile=$(readlink -e "$kfile") fi -if [ -d /sys/firmware/efi ]; then +if [ -d /sys/firmware/efi ] && [ "$FK_FORCE_EFI" != "yes" ]; then # skipping when detect EFI echo "System running in EFI mode, skipping." exit 0