Bug 53178 - "EFI-GRUB" is automatically replaced with "BIOS-GRUB"
"EFI-GRUB" is automatically replaced with "BIOS-GRUB"
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Grub
UCS 5.0
Other Linux
: P5 normal (vote)
: UCS 5.0
Assigned To: Philipp Hahn
Sönke Schwardt-Krummrich
:
Depends on: 51488
Blocks:
  Show dependency treegraph
 
Reported: 2021-04-27 21:00 CEST by Sönke Schwardt-Krummrich
Modified: 2021-05-25 16:01 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: 7: Crash: Bug causes crash or data loss
Who will be affected by this bug?: 3: Will affect average number of installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.600
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review: Yes
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sönke Schwardt-Krummrich univentionstaff 2021-04-27 21:00:32 CEST
After updating an UEFI+SecureBoot system from UCS 4.4-8 to UCS 5.0-0, in UMC and on CLI the following update is suggested which would remove the EFI-GRUB:

root@uefitest:~# dpkg --configure -a
root@uefitest:~# apt-get dist-upgrade -s -o Debug::pkgProblemResolver=1 -o Debug::NoLocking=1 
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Starting pkgProblemResolver with broken count: 210%
Starting 2 pkgProblemResolver with broken count: 2
Investigating (0) grub-pc:amd64 < none -> 2.02+dfsg1-20+deb10u4 @un uN Ib >
Broken grub-pc:amd64 Kollidiert mit on grub-efi-amd64:amd64 < 2.02+dfsg1-20+deb10u4 @ii mK Ib >
  Considering grub-efi-amd64:amd64 -1 as a solution to grub-pc:amd64 0
  Added grub-efi-amd64:amd64 to the remove list
  Fixing grub-pc:amd64 via remove of grub-efi-amd64:amd64
Done
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete werden ENTFERNT:
  grub-efi-amd64
Die folgenden NEUEN Pakete werden installiert:
  grub-pc grub-pc-bin
Die folgenden Pakete werden aktualisiert (Upgrade):
  memtest86+
1 aktualisiert, 2 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.
Remv grub-efi-amd64 [2.02+dfsg1-20+deb10u4]
Inst grub-pc-bin (2.02+dfsg1-20+deb10u4 Univention Corporate Server:5.0.0/ucs500 [amd64])
Inst grub-pc (2.02+dfsg1-20+deb10u4 Univention Corporate Server:5.0.0/ucs500 [amd64])
Inst memtest86+ [5.01-3A~4.3.0.201711222235] (5.01-3A~5.0.0.202008201333 Univention Corporate Server:5.0.0/ucs500 [amd64])
Conf grub-pc-bin (2.02+dfsg1-20+deb10u4 Univention Corporate Server:5.0.0/ucs500 [amd64])
Conf grub-pc (2.02+dfsg1-20+deb10u4 Univention Corporate Server:5.0.0/ucs500 [amd64])
Conf memtest86+ (5.01-3A~5.0.0.202008201333 Univention Corporate Server:5.0.0/ucs500 [amd64])
root@uefitest:~# 

Any hints, why apt-get is about to remove grub-efi-amd64 are very welcome.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2021-04-27 21:03:37 CEST
To make it clear: the update from 4.4-8 to 5.0-0 seem to have worked flawlessly but immediately after the update, the GRUB replacement is suggested (and performed, if the user acknowledges it).

root@uefitest:~# dpkg -l grub*
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                  Version                 Architektur  Beschreibung
+++-=====================-=======================-============-=================================================================
un  grub                  <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-cloud-amd64      <keine>                 <keine>      (keine Beschreibung vorhanden)
ii  grub-common           2.02+dfsg1-20+deb10u4   amd64        GRand Unified Bootloader (common files)
un  grub-coreboot         <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-doc              <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-efi              <keine>                 <keine>      (keine Beschreibung vorhanden)
ii  grub-efi-amd64        2.02+dfsg1-20+deb10u4   amd64        GRand Unified Bootloader, version 2 (EFI-AMD64 version)
ii  grub-efi-amd64-bin    2.02+dfsg1-20+deb10u4   amd64        GRand Unified Bootloader, version 2 (EFI-AMD64 modules)
ii  grub-efi-amd64-signed 1+2.02+dfsg1+20+deb10u4 amd64        GRand Unified Bootloader, version 2 (amd64 UEFI signed by Debian)
un  grub-efi-arm          <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-efi-arm64        <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-efi-ia32         <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-efi-ia64         <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-emu              <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-ieee1275         <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-legacy           <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-legacy-doc       <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-linuxbios        <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-pc               <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-uboot            <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-xen              <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub-yeeloong         <keine>                 <keine>      (keine Beschreibung vorhanden)
un  grub2                 <keine>                 <keine>      (keine Beschreibung vorhanden)
ii  grub2-common          2.02+dfsg1-20+deb10u4   amd64        GRand Unified Bootloader (common files for version 2)
root@uefitest:~#
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2021-04-27 21:14:52 CEST
Investigating (0) memtest86+:amd64 < 5.01-3A~4.3.0.201711222235 -> 5.01-3A~5.0.0.202008201333 @ii umU Ib >
Broken memtest86+:amd64 Hängt ab von on grub-pc:amd64 < none | 2.02+dfsg1-20+deb10u4 @un uH > (>= 2.02+dfsg1-20+deb10u2)
  Considering grub-pc:amd64 -1 as a solution to memtest86+:amd64 2
  Holding Back memtest86+:amd64 rather than change grub-pc:amd64

root@uefitest:~# apt-cache rdepends grub-pc
grub-pc
Reverse Depends:
  memtest86+
 |memtest86+
[...]
root@uefitest:~# apt-cache rdepends memtest86+
memtest86+
Reverse Depends:
  debian-edu-config
  univention-role-common
  memtest86
  education-main-server
  education-common

root@uefitest:~# dpkg -l memtest86+ | grep ^ii
ii  memtest86+     5.01-3A~4.3.0.201711222235 amd64        thorough real-mode memory tester

root@uefitest:~# dpkg -l univention-role-common | grep ^ii
ii  univention-role-common 15.0.4-2A~5.0.0.202104270955 all          UCS system role common dependencies and files

root@uefitest:~# apt-cache show univention-role-common
Package: univention-role-common
Architecture: all
Version: 15.0.4-2A~5.0.0.202104270955
Priority: optional
Section: univention
Source: univention-server
Maintainer: Univention GmbH <packages@univention.de>
Installed-Size: 18
Depends: python-univention-lib (>= 1.0.25-1), shell-univention-lib (>= 1.0.25-1), univention-admin-diary-client, univention-appcenter, univention-archive-key, univention-config, univention-firewall, univention-grub, univention-join, univention-pkgdb-tools, univention-policy-tools, univention-system-setup, univention-updater
Recommends: cifs-utils, eject, elinks, emacs-gtk, less, locate, man-db, nmap, univention-network-common, univention-welcome-screen, unzip, vim, wget, zip, memtest86+, lvm2
Conflicts: libnss-passwdcache, libpam-passwdcache, python-univention-directory-manager-uvmm, python3-univention-directory-manager-uvmm, univention-check-printers, univention-debootstrap, univention-debootstrap-3, univention-doc, univention-ftp, univention-java, univention-kernel-headers, univention-kernel-image, univention-kernel-source, univention-management-console-doc, univention-mysql, univention-nagios-server, univention-passwd-cache, univention-pkgdb-lib, univention-remote-backup, univention-runit, univention-samba4wins, univention-samba4wins-schema, univention-snmp, univention-snmpd, univention-virtual-machine-manager-schema
Filename: pool/main/u/univention-server/univention-role-common_15.0.4-2A~5.0.0.202104270955_all.deb
Size: 12556
MD5sum: 87d08d8524e7d45e7fe1f5f2851749e7
SHA1: 28cea69af56353d6ef21c713805f0639431b0245
SHA256: 23bf8390e0802cf6dd2121bf610c327bd290db5c7271bd700dc142ee075dbf5b
SHA512: 4477e46469a2eda6cee487e92452b9fa9c85bea42739b4e11a732d51965ffd8e8c6f312a6ea26daa743a0230eca8b0085f698a842fa25f46a2bce597f71c9e3b
Description: UCS system role common dependencies and files
 This package contains common files used by all system roles.
 .
 This package is part of Univention Corporate Server (UCS),
 an integrated, directory driven solution for managing
 corporate environments. For more information about UCS,
 refer to: https://www.univention.de/
Description-md5: 1a0c45fc58f3be1d256a4a904fcaa28f
Comment 3 Sönke Schwardt-Krummrich univentionstaff 2021-04-27 21:21:52 CEST
UCS 4.4
# apt-cache show memtest86+ | grep Suggests
Suggests: hwtools, memtester, kernel-patch-badram, memtest86, grub-pc | grub-legacy, mtools

UCS 5.0 
# apt-cache show memtest86+ | grep Depends
Depends: debconf (>= 0.5) | debconf-2.0, grub-pc (>= 2.02+dfsg1-20+deb10u2)
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2021-04-27 22:04:56 CEST
Suggestion: remove memtest86+ in preup.sh of UCS 5 if grub-efi-amd64 is installed.
Comment 5 Sönke Schwardt-Krummrich univentionstaff 2021-04-27 22:07:29 CEST
(In reply to Sönke Schwardt-Krummrich from comment #0)
> After updating an UEFI+SecureBoot system from UCS 4.4-8 to UCS 5.0-0, in UMC
> and on CLI the following update is suggested which would remove the EFI-GRUB:

This will lead to unbootable systems.
Comment 6 Philipp Hahn univentionstaff 2021-04-28 08:07:11 CEST
Introduced through Bug #51488 with patches/memtest86+/5.0-0-0-ucs/5.01-3/01-Bug-51488-Workaround-for-broken-grub-config.patch

-Depends: ${misc:Depends}
-Suggests: hwtools, memtester, kernel-patch-badram, memtest86, grub-pc | grub-legacy, mtools
+Depends: ${misc:Depends}, grub-pc (>= 2.02+dfsg1-20+deb10u2)
+Suggests: hwtools, memtester, kernel-patch-badram, memtest86, mtools
Comment 7 Philipp Hahn univentionstaff 2021-04-28 08:28:48 CEST
r19364 | Bug #53178: Remove patch breaking UEFI-SB

Package: memtest86+
Version: 5.01-3A~5.0.0.202104280821

No changelog entry as this reverts a patch, which was transitional only.
Comment 8 Sönke Schwardt-Krummrich univentionstaff 2021-05-04 10:22:42 CEST
(In reply to Philipp Hahn from comment #7)
> r19364 | Bug #53178: Remove patch breaking UEFI-SB
> 
> Package: memtest86+
> Version: 5.01-3A~5.0.0.202104280821
> 
> No changelog entry as this reverts a patch, which was transitional only.

Works fine for me. Updated 2 UEFI systems:
1) 4.4-8 → 5.0-0 → OK
2) I used an updated 4.4-8→5.0-0 systems which was about to replace grub-efi
  → OK, after "apt-get update" the updater is no longer trying to replace grub-efi

OK: code change
OK: package is built
OK: update tests
Comment 11 Florian Best univentionstaff 2021-05-25 16:01:35 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".