[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1033737: marked as done (flash-kernel: Unable to run flash-kernel on EFI-based systems)



Your message dated Wed, 19 Apr 2023 22:49:22 +0000
with message-id <E1ppGc6-001Tul-Vp@fasolo.debian.org>
and subject line Bug#1033737: fixed in flash-kernel 3.107
has caused the Debian Bug report #1033737,
regarding flash-kernel: Unable to run flash-kernel on EFI-based systems
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1033737: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033737
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: flash-kernel
Version: 3.106
Severity: normal
File: flash-kernel
X-Debbugs-Cc: isaac@is.having.coffee

Dear Maintainer,

As part of our CI/CD system, we are building images for target devices.
The images are set up in virtual machines which boot using EFI, but
flash-kernel installation always fails as it detects that the system is
running in EFI by checking for the existence of /sys/firmware/efi. 

Being able to setup the image on these VMs is an important part of our
testing and validation workflow, so it would be very helpful to have an
option to skip this check and proceed regardless of whether the system
is currently running in EFI mode or not. 

I've added a debdiff for a proposal for a new parameter --force-efi
which can be set to skip this check.

---

diff -Nru flash-kernel-3.106/debian/changelog flash-kernel-3.106+nmu1/debian/changelog
--- flash-kernel-3.106/debian/changelog 2022-04-22 23:55:41.000000000 +0000
+++ flash-kernel-3.106+nmu1/debian/changelog    2023-03-31 13:04:23.000000000 +0000
@@ -1,3 +1,10 @@
+flash-kernel (3.106+nmu1) UNRELEASED; urgency=medium
+
+  * Skip EFI detection mechanism when the --force-efi option
+    has been set.
+
+ -- Isaac True <isaac@is.having.coffee>  Fri, 31 Mar 2023 13:04:23 +0000
+
 flash-kernel (3.106) unstable; urgency=medium

   * db/all.db: Move MNT Reform 2 boards later to fix sort order.
diff -Nru flash-kernel-3.106/flash-kernel.8 flash-kernel-3.106+nmu1/flash-kernel.8
--- flash-kernel-3.106/flash-kernel.8   2022-03-23 14:22:28.000000000 +0000
+++ flash-kernel-3.106+nmu1/flash-kernel.8      2023-03-31 13:04:23.000000000 +0000
@@ -3,7 +3,7 @@
 .SH NAME
 flash-kernel \- put kernel and initramfs in boot location
 .SH SYNOPSIS
-.B flash-kernel [--supported] [--force] [kvers]
+.B flash-kernel [--supported] [--force] [--force-efi] [kvers]
 .SH DESCRIPTION
 flash-kernel is a script which will put the kernel and initramfs in
 the boot location of embedded devices that don't load the kernel and
@@ -25,6 +25,11 @@
 match. Valid filenames for images to flash are suffixed with the
 subarchitecture.
 .P
+Normally, flash\-\-kernel will abort the installation if it detects that
+it is running in an EFI-based environment. If the \-\-force\-efi option
+is used, flash\-kernel will skip this check and continue with the
+installation.
+.P
 If the \-\-supported option is used, flash\-kernel will test to see if
 the hardware is supported, and return a true or false value.
 .SH ENVIRONMENT VARIABLES
diff -Nru flash-kernel-3.106/functions flash-kernel-3.106+nmu1/functions
--- flash-kernel-3.106/functions        2022-04-12 19:43:15.000000000 +0000
+++ flash-kernel-3.106+nmu1/functions   2023-03-31 13:04:23.000000000 +0000
@@ -679,6 +679,11 @@
        force="yes"
        shift
 fi
+force_efi="no"
+if [ "x$1" = "x--force-efi" ]; then
+       force_efi="yes"
+       shift
+fi
 if [ "x$1" = "x--machine" ]; then
        machine="$2"
        shift 2
@@ -789,9 +794,10 @@
        kfile=$(readlink -e "$kfile")
 fi

-if [ -d /sys/firmware/efi ]; then
+if [ -d /sys/firmware/efi ] && [ "x$force_efi" != "xyes" ]; then
        # skipping when detect EFI
        echo "System running in EFI mode, skipping."
+       echo "Use --force-efi if you want to skip this check."
        exit 0
 fi

--- End Message ---
--- Begin Message ---
Source: flash-kernel
Source-Version: 3.107
Done: Vagrant Cascadian <vagrant@debian.org>

We believe that the bug you reported is fixed in the latest version of
flash-kernel, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1033737@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <vagrant@debian.org> (supplier of updated flash-kernel package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 19 Apr 2023 14:12:53 -0700
Source: flash-kernel
Architecture: source
Version: 3.107
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Vagrant Cascadian <vagrant@debian.org>
Closes: 1019881 1033737
Changes:
 flash-kernel (3.107) unstable; urgency=medium
 .
   [ Lubomir Rintel ]
   * Make the OLPC XO-1.75 boot script a bit more forgiving
 .
   [ Heinrich Schuchardt ]
   * db: add Lenovo Miix 630 and Lenovo Yoga C630
 .
   [ Alexandre Ghiti ]
   * Add the StarFive VisionFive board to the database.
   * Add D1 SoC boards to the database
 .
   [ Johannes Schauer Marin Rodrigues ]
   * Choose a stable temporary file path for ucf
 .
   [ Dave Jones ]
   * Add QEMU-related "dummy" entries
 .
   [ Daniel Serpell ]
   * Add A20-OLinuXino_MICRO-eMMC. (Closes: #1019881)
 .
   [ Heinrich Schuchardt ]
   * db: add Lenovo ThinkPad X13s
 .
   [ Francesco Dolcini ]
   * Add machine db entries for Colibri iMX6ULL eMMC
 .
   [ Heinrich Schuchardt ]
   * db: add 'Raspberry Pi 3 Model B Plus Rev 1.3'
 .
   [ Isaac True ]
   * Skip EFI detection mechanism when the FK_IGNORE_EFI environment
     variable is set to "yes". (Closes: #1033737)
 .
   [ Vagrant Cascadian ]
   * Set the value of FK_IGNORE_EFI from
     /etc/flash-kernel/ignore-efi. (Closes: #1033737)
Checksums-Sha1:
 b9a195b1b628de7df356bb8b18273824893dc922 1293 flash-kernel_3.107.dsc
 26338bca1cc8303576de00c886abf0ccd0ee5ea7 75992 flash-kernel_3.107.tar.xz
 be3eb6c6fbb97e14d74f3d55768ddfb8c018c726 5727 flash-kernel_3.107_arm64.buildinfo
Checksums-Sha256:
 3978c90e8d78570f886647599fb1a7367cafa9993987158d88cc9f9096dd9749 1293 flash-kernel_3.107.dsc
 3a486a8f964f30a08a6367f4065729cb1519d7164ce6e523c9e9c9b6482b7f4d 75992 flash-kernel_3.107.tar.xz
 3097d00d8402de1c54f24bb6c8ba7731ecda0d50b717b44f274b0d4d5a8803b1 5727 flash-kernel_3.107_arm64.buildinfo
Files:
 4c8851380e299887c3dcff91cc30ad5c 1293 utils optional flash-kernel_3.107.dsc
 b15bffe67fd28ae906a7e23713675913 75992 utils optional flash-kernel_3.107.tar.xz
 29b5fe812fbad6144a68f91cdcdee564 5727 utils optional flash-kernel_3.107_arm64.buildinfo

-----BEGIN PGP SIGNATURE-----

iIkEARYKADEWIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZEBaYBMcdmFncmFudEBk
ZWJpYW4ub3JnAAoJENxRj8h/lxaqThEBAP6XyoW/3c160uCyCYa3KxK9GjRMO5sZ
b3d9OuA6eQuLAQC//XqHWpzn8t+AandQw2AJksUFpSIY5/u5hJBKXf4PCQ==
=18N0
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: