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

Bug#776782: marked as done (x86/mac: false warning about being in EFI mode)



Your message dated Wed, 25 Feb 2015 09:21:00 +0000
with message-id <E1YQY9M-0008Rt-Q3@franck.debian.org>
and subject line Bug#776782: fixed in partman-efi 64
has caused the Debian Bug report #776782,
regarding x86/mac: false warning about being in EFI mode
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.)


-- 
776782: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776782
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: partman-efi
Version: 62
Severity: normal
Tags: d-i patch

If you boot an x86/mac in legacy BIOS mode with a pre-existing non-UEFI OS
installed, you will get the following warning:

"This machine's firmware has started the installer in UEFI mode but it looks
like there may be existing operating systems already installed using "BIOS
compatability mode".
..
"Force UEFI Installation?"

The following patch resolves the issue for me.

diff --git a/init.d/efi b/init.d/efi
index 7b71990..42f95dd 100755
--- a/init.d/efi
+++ b/init.d/efi
@@ -8,7 +8,11 @@ ARCH="$(archdetect)"
 # Give the kernel a chance to create /proc/efi if appropriate.
 modprobe efivars >/dev/null 2>&1 || true
 
-if [ -d /proc/efi ] || [ -d /sys/firmware/efi ]; then
+in_efi_mode() {
+    [ -d /proc/efi ] || [ -d /sys/firmware/efi ]
+}
+
+if in_efi_mode; then
 	> /var/lib/partman/efi
 else
 	case $ARCH in
@@ -86,7 +90,7 @@ done
 
 log "Found $NUM_ESP ESPs, $NUM_NO non-ESPs"
 
-if [ $NUM_ESP = 0 ] && [ $NUM_NO -gt 0 ]; then
+if in_efi_mode && [ $NUM_ESP = 0 ] && [ $NUM_NO -gt 0 ]; then
 	case $ARCH in
 		i386/*|amd64/*)
 			db_input critical partman-efi/non_efi_system || true




-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Source: partman-efi
Source-Version: 64

We believe that the bug you reported is fixed in the latest version of
partman-efi, 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 776782@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christian Perrier <bubulle@debian.org> (supplier of updated partman-efi 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: SHA256

Format: 1.8
Date: Wed, 25 Feb 2015 06:57:28 +0100
Source: partman-efi
Binary: partman-efi
Architecture: source i386
Version: 64
Distribution: unstable
Urgency: medium
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Christian Perrier <bubulle@debian.org>
Description:
 partman-efi - Add to partman support for EFI System Partitions (udeb)
Closes: 776782
Changes:
 partman-efi (64) unstable; urgency=medium
 .
   [ dann frazier ]
   * Avoid false warning about being in EFI mode on x86/macs booted in
     legacy mode. Closes: #776782
Checksums-Sha1:
 6dc0416b100161ecf4c42033974b46c833c4fc07 1720 partman-efi_64.dsc
 937c7f8ce7bc62da2d20e965cd449b376f725894 63724 partman-efi_64.tar.xz
 d0580ab803b2a6bb81e1280d468e7b6a31cf6b48 41108 partman-efi_64_i386.udeb
Checksums-Sha256:
 455325492418dc323e710dbb4260801ad6224fd4335bd29d36873e17134a5fc7 1720 partman-efi_64.dsc
 9768de9a0cce0449ef3b759fd6906db3ffafde9aef2d8fda2807285b874b2376 63724 partman-efi_64.tar.xz
 5e5408517d5ac1c13c3c61afb319c3878bad1af1ffbf9f5245b13a1d3df71db5 41108 partman-efi_64_i386.udeb
Files:
 2492beb1a1107d17f97f2c9de25f90e2 1720 debian-installer standard partman-efi_64.dsc
 09fc7cfc7b80f2e0afbb7e42e65fa212 63724 debian-installer standard partman-efi_64.tar.xz
 e9431780f7ca526d57e7597da0e76046 41108 debian-installer standard partman-efi_64_i386.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCAAGBQJU7YPHAAoJEIcvcCxNbiWomQAQAIESla0gJhPHOiVq29MtGovz
2aax3vq6scF/x2Oz1Y83pGP2HghWFxuhDPSgRo0i1TT6xMYPFaFxw4kPDq3nFGrE
hjBlk7c/i5Uk3YdYXoLhPbfEjSeKhOK5UQWuOoSH8xhJru8FR3ifX2azSjEApwAR
ueHrpp4z1+pmjcFsNuFvDhu5tBp4mlBw4sfJpzpyP567RZ/5SVH2yNO1nlrWNWV6
8SJZd3UPmro/7/ZS4vD+GHRE5yr/myxlpetJT5XAC9Gj2JKhmLgBvriIMYFGxIus
imtaZVE/GVgrSFeyKy3V/v98kfrr5lHLHK0tCtSeqIpC29H1Pgaf/4YoooWFQOVO
HJC3skGSK2MhZhhiqzWjaFOZpl9OJdgb8J5AnxI2cfsqYKKmAfDkc9Hfkxi04ite
zhsoSK75JNct108KVhrBrvsIgVZGH9bkND22M871aStYPyzSHRrVRUlvb2vTiJiE
G98NIHSb9600k5AYLntuOd7PkfMjBxNWDMTLlH/M2ydUppn9j4KYzKpdkEBsctSy
cSerlyabvMBrcK6ecm5jAw3/IRTQXLcsedyInHhBog7jD/8Em44s7RODrfUjjbJa
uE3sMxpuu4UHeTmn1rBoyA3hepZ6MI9EadVkEMxJ+bOvxDWGJ9W9iS4JwAbn961j
qwPRdcJEbgEvwEhMF1R+
=Dm/9
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: