Bug 18380 - Regression in grub2-2.02~beta3 breaks boot (PC-BIOS i586) TPM Error 1
Summary: Regression in grub2-2.02~beta3 breaks boot (PC-BIOS i586) TPM Error 1
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-05 19:24 CEST by Barry Jackson
Modified: 2016-05-07 18:12 CEST (History)
2 users (show)

See Also:
Source RPM: grub2-2.02~beta3
CVE:
Status comment:


Attachments
screenshot of error (380.37 KB, image/png)
2016-05-05 21:55 CEST, Barry Jackson
Details
screenshot with other commands (440.42 KB, image/png)
2016-05-05 22:02 CEST, Barry Jackson
Details

Description Barry Jackson 2016-05-05 19:24:32 CEST
Description of problem:
Complete boot fail, drops to grub2 rescue prompt.

I have tested revision 1006389 and this works fine.

The next revision which switched to a new beta3 tarball fails.
I tried to test a build without the patch that updates to master but commenting that causes other patches to fail and I really don't understand why or how it's now using Fedora git to create patches.
The git revision in the package name is also bogus which is confusing.

Please assign to Thierry.

I will attach a screenshot of the error.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
Comment 1 Barry Jackson 2016-05-05 21:55:39 CEST
Created attachment 7747 [details]
screenshot of error
Comment 2 Marja Van Waes 2016-05-05 22:01:54 CEST
(In reply to Barry Jackson from comment #0)

> 
> Please assign to Thierry.
> 

It would have been fine for you to do that yourself ;-)

CC: (none) => marja11
Assignee: bugsquad => thierry.vignaud

Comment 3 Barry Jackson 2016-05-05 22:02:43 CEST
Created attachment 7748 [details]
screenshot with other commands

Shot showing that ls works and no error is given when root variable is set, however linux is not recognised, so it seems that maybe there is a grub filesystem issue reading modules from disk.
lsmod returns nothing which backs this up.
Barry Jackson 2016-05-05 22:33:10 CEST

Summary: Regression in grub2-2.02~beta3 breaks boot (PC-BIOS i586) TMP Error 1 => Regression in grub2-2.02~beta3 breaks boot (PC-BIOS i586) TPM Error 1

Comment 4 Barry Jackson 2016-05-05 23:15:35 CEST
A test build of totally un-patched ~beta3 boots fine, so this is related to a Fedora patch somewhere, or something committed after ~beta3.
Comment 5 Barry Jackson 2016-05-05 23:31:11 CEST
~beta3 plus *only* 'grub-2.02-beta3-to-origin-master.patch' also boots OK.
Comment 6 Barry Jackson 2016-05-06 01:36:55 CEST
Ah - there's a whole raft of secure-boot and TPM stuff from Fedora that's been added.

Removing Patches 59, 70, 71, 74, 75, 76, 79, 80, 81, 82, 87, 88, 89 seems to fix this bug.
Comment 7 Barry Jackson 2016-05-06 01:55:51 CEST
Thierry,
I have committed the above which removes:
D       ./SOURCES/0070-Add-secureboot-support-on-efi-chainloader.patch
D       ./SOURCES/0080-Measure-the-kernel-commandline.patch
D       ./SOURCES/0075-Measure-kernel-initrd.patch
D       ./SOURCES/0087-Fix-boot-when-there-s-no-TPM.patch
D       ./SOURCES/0089-Fix-event-log-prefix.patch
D       ./SOURCES/0088-Rework-TPM-measurements.patch
D       ./SOURCES/0076-Add-BIOS-boot-measurement.patch
D       ./SOURCES/0059-Load-arm-with-SB-enabled.patch
D       ./SOURCES/0071-Make-any-of-the-loaders-that-link-in-efi-mode-honor-.patch
D       ./SOURCES/0081-Measure-commands.patch
D       ./SOURCES/0074-Core-TPM-support.patch
D       ./SOURCES/0082-Measure-multiboot-images-and-modules.patch
D       ./SOURCES/0079-Measure-kernel-and-initrd-on-BIOS-systems.patch


...and pushed it to cauldron core/updates_testing

I have installed and tested it here in x86_64 EFI and i586 PC_BIOS with no issues so far.
Comment 8 Marja Van Waes 2016-05-06 14:22:48 CEST
confirming that I cannot boot my 32bit system with grub2-2.02-0.git10270.6.mga6 that is currently in cauldron core, because it ends at the rescue prompt.

I intend to try grub2-2.02-0.git10270.7.mga6 from updates_testing later today (on both 32 and 64 bit), after updating my mirror.
Comment 9 Marja Van Waes 2016-05-06 15:24:14 CEST
grub2-2.02-0.git10270.7.mga6 from updates_testing works fine on the 32bit system.
and there were no regressions on a 64bit legacy BIOS system.
Comment 10 Thomas Backlund 2016-05-07 18:12:44 CEST
Confirmed grub2-2.02-0.git10270.6.mga6 broke Win boot on x86_64 UEFI, and the one in testing "*.7.mga6" fixing it, o submitted it as *.8.mga6 to release

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.