libdebian-installer uses a different detection method for EFI than efivar
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libdebian-installer (Ubuntu) |
Fix Released
|
Critical
|
Mathieu Trudel-Lapierre | ||
Xenial |
Fix Released
|
Critical
|
Mathieu Trudel-Lapierre | ||
Yakkety |
Fix Released
|
Critical
|
Mathieu Trudel-Lapierre |
Bug Description
[Impact]
Some systems which do not correctly support EFI variables or have an incomplete implementation of the EFI spec may fail to install due to efibootmgr being unable to set BootEntry although archdetect reports the system being booted in EFI mode.
[Test case]
1) boot in EFI mode
TEST) Unmount /sys/firmware/
2) Run archdetect.
[Regression potential]
If efivars or vars don't get mounted (use of another init system than systemd, or lack of the efivars kernel module); the detection code will fail to see that the system is in EFI mode and installation will proceed in legacy mode.
--
After installing 16.04 (upgrade or re-install), I get this exception on login.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: shim-signed 1.12+0.8-0ubuntu2
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
BootEFIContents:
fw
fwupx64.efi
Date: Mon May 16 09:28:29 2016
Df:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdb2 208735776 11061044 187048532 6% /
/dev/sr0 1451056 1451056 0 100% /cdrom
udev 7894540 0 7894540 0% /dev
tmpfs 1581840 9536 1572304 1% /run
EFIBootMgr: Error: command ['efibootmgr', '-v'] failed with exit code 2: efibootmgr: EFI variables are not supported on this system.
ErrorMessage: subprocess installed post-installation script returned error exit status 1
RelatedPackageV
dpkg 1.18.4ubuntu1
apt 1.2.10ubuntu1
SourcePackage: shim-signed
Title: package shim-signed 1.12+0.8-0ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in ubiquity (Ubuntu Xenial): | |
status: | Incomplete → Confirmed |
Changed in ubiquity (Ubuntu Yakkety): | |
status: | Incomplete → New |
Changed in ubiquity (Ubuntu Xenial): | |
status: | Confirmed → Incomplete |
status: | Incomplete → Confirmed |
status: | Confirmed → Incomplete |
status: | Incomplete → New |
status: | New → Confirmed |
Changed in ubiquity (Ubuntu Xenial): | |
status: | Confirmed → Incomplete |
Changed in ubiquity (Ubuntu Yakkety): | |
status: | New → Incomplete |
summary: |
- Problem detected upon boot/login + libdebian-installer uses a different detection method for EFI than + efivar |
Changed in libdebian-installer (Ubuntu Xenial): | |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in libdebian-installer (Ubuntu Yakkety): | |
importance: | Undecided → Critical |
assignee: | nobody → Mathieu Trudel-Lapierre (cyphermox) |
Changed in libdebian-installer (Ubuntu Xenial): | |
importance: | Undecided → Critical |
status: | New → In Progress |
Changed in libdebian-installer (Ubuntu Yakkety): | |
status: | New → In Progress |
Changed in ubiquity (Ubuntu Xenial): | |
status: | Incomplete → Invalid |
Changed in ubiquity (Ubuntu Yakkety): | |
status: | Incomplete → Invalid |
description: | updated |
description: | updated |
no longer affects: | ubiquity (Ubuntu) |
no longer affects: | ubiquity (Ubuntu Xenial) |
no longer affects: | ubiquity (Ubuntu Yakkety) |
Changed in libdebian-installer (Ubuntu Xenial): | |
milestone: | none → ubuntu-16.04.1 |
Sorry, when you say "upgrade or reinstall", what do you mean? You mean you saw this error on an upgrade, and also again after reinstalling the system?
The error message shows that you are installing the shim-signed package on a system that is not booted in EFI mode. We should fix this to not return an error (but such a fix is dependent on first fixing bug #1366546). But why is shim-signed being installed on your system, if the system is not booted in efi mode? Have you somehow requested this package?
The dpkg logs attached to your bug report are not particularly illuminating.