Bug description of Ubuntu Grub2

binnan hao haobinnan at gmail.com
Tue Jul 24 22:32:42 UTC 2018


Question 1:
Configuration instructions
CPU: Intel i7 7700
Graphics card: CPU integration
Motherboard: ROG STRIX Z270E GAMING
BIOS starts UEFI and secure boot (64Bit UEFI)

Shim15->Ubuntu Grub2(applied/ubuntu/bionic-devel)

Booting to Ubuntu Grub2 stuck, the screen is always black, you can only
restart the computer by pressing the restart button.
If you turn off the safe boot, everything works fine.
I can rule out that it is caused by shim15, because after I deleted the
grub.efi file, shim15 prompts that grub.efi cannot be found.
Finally, I deleted the grub.cfg file and it still stuck.
The above problem is normal if you use the Fedora29 Grub2 code (
https://github.com/rhboot/grub2/tree/fedora-29).

Question 2:
The test platform is VMware14, and the BIOS has enabled UEFI and Secure
Boot (32Bit UEFI).
32Bit UEFI will not have the above problem, but it will be stuck when
bootloader is used to boot the bootmgfw.efi file of Windows system.
This is the case with Ubuntu Grub2 (applied/ubuntu/bionic-devel) and
Fedora29 Grub2 (https://github.com/rhboot/grub2/tree/fedora-29).
Debian Grub2's 32Bit Grub2 (
https://salsa.debian.org/grub-team/grub/tree/debian/2.02+dfsg1-4) has no
problems, but he will have the stuck condition described in question 1.

I am not very familiar with the grub2 code, but I can assist with the test.

Grub.cfg file

insmod part_gpt
insmod part_msdos
insmod png
insmod all_video
insmod gfxterm

loadfont $prefix/font.pf2

set timeout=3
set default=1
set gfxmode=auto
set gfxpayload=1024x768
terminal_output gfxterm
set theme=/style.txt

menuentry 'Linux' --hotkey=f3 {
if cpuid -l; then
linux /bzImage loglevel=3
else
linux /bzImage_x86 loglevel=3
fi
initrd /initramfs
}

menuentry 'System' --hotkey=enter {
chainloader (${root})/EFI/Microsoft/Boot/bootmgfwLoadOs.efi
}

-- 
*Hao Binnan*
*Isoo (Qinhuangdao) software development Co., Ltd. (China)*
http://www.eassos.com

PGP Public Key: 4096R/9EF21740 / 9678 1E8C B21E 1E60 3997  811D F83B B359
9EF2 1740
haobinnan <haobinnan at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20180725/fa58e2d2/attachment-0001.html>


More information about the ubuntu-server mailing list