Bug 1082349

Summary: YaST2 Warning: No partitions of type bios_grub present.
Product: [openSUSE] openSUSE Distribution Reporter: Terje J. Hanssen <terjejhanssen>
Component: InstallationAssignee: E-mail List <yast2-maintainers>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: ancor, jlopez, schubi, terjejhanssen
Version: Leap 15.0Flags: jlopez: needinfo? (terjejhanssen)
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs from Leap 42.3 in dualboot setup on Asus
y2logs from Leap 150 in dual-boot setup on Asus (long boot time, timeout?)

Description Terje J. Hanssen 2018-02-22 16:37:39 UTC
I have encountered the following YasT2 pop up warning several times, while attempting to add-install Leap for dual-boot on existing hard disks, new partitions or existing partitions:

YaST2 Warning:
"There is no partitions of type bios_grub present. Such a partition is recommended (required with Btrfs) when Grub2 is installed in the MBR of a GPT disk. It must be unformatted and approximately 1 MB large. Really use this setup? ". Yes or No?

I think there is a need to add user functionality in the YaST2 installer to easy solve this issue when it occures.
Comment 2 Terje J. Hanssen 2018-02-23 21:26:12 UTC
The latest time a few days ago, I encountered the bios_grub warning when I attempted to install Leap 150 in a dual-boot setup on a brand new ultrabook, Dell XPS 13 9370 Dev with Ubuntu 16.04 LTS pre-installed. As I exited this first installation attempt on XPS 13, I have neither any y2logs from it. Instead I will just sum up the actual configuration in this comment, and next add y2logs from Leap 42.3 in dual-boot setup with Leap15 on another workstation below.

XPX 13
I booted the Leap 150 YaST2 installer USB stick and noticed the 1 TiB SSD (nvme0n) default was partioned as follows:

p1: 600 MiB EFI Boot FAT ESP /boot/efi
p2: 5 GiB Win95 FAT LBA OS
p3: 900 GiB Linux Native ext4 Ubuntu /
p4: 31.4 GiB Linux Swap swap

With the YaST2 installer I tried to first resize (shrink) the Ubuntu p3 partition down to 700 GiB, and next added two new OS partitions:

p5: 100 GiB Linux Native ext4 (for Leap 150 /)
p6: 100 GiB NTFS (for Windows next/later)

Then the following YaST2 Warning poped up:
"There is no partitions of type bios_grub present. Such a partition is recommended (required with Btrfs) when Grub2 is installed in the MBR of a GPT disk. It must be unformatted and approximately 1 MB large. Really use this setup? " Yes or No?
------------------------

I felt it was unsafe to force to continue and wouldn't take the risk to break something here, so I stopped with "No".

I would be happy to get clarified the following questions first:

1) I couldn't find out how to solve the above warning/request for a "bios_grub" partition of 1 MB .........?

2) Should the pre-created p1 (/boot/efi) and p4 (swap) be mounted correspondingly for the new Leap (as it has been for Ubuntu)?

3) How safe is it that both Ubuntu and Leap will be available from the grub2 boot menu after adding a Leap-installation?
(On my other machines I sometimes have to re-install (upgrade) the boot loader on the first systems before both systems can be booted).
Comment 3 Terje J. Hanssen 2018-02-23 21:28:58 UTC
Created attachment 761541 [details]
y2logs from Leap 42.3 in dualboot setup on Asus
Comment 4 Terje J. Hanssen 2018-02-23 21:30:57 UTC
Created attachment 761542 [details]
y2logs from Leap 150 in dual-boot setup on Asus (long boot time, timeout?)
Comment 5 Ancor Gonzalez Sosa 2018-02-27 16:38:38 UTC
Does you system use EFI to boot[1]?

If that's the case, the warning is a bug. In an EFI-enabled system the bios_boot partition should never be required, AFAIK.

[1] In other words, booting from the Leap iso looks like this (with many options at the bottom) https://openqa.opensuse.org/tests/620266#step/bootloader/1
or like this (only 2 options)? https://openqa.opensuse.org/tests/620248#step/bootloader_uefi/11
Comment 6 Terje J. Hanssen 2018-02-27 20:36:15 UTC
To enable USB boot via Thunderbolt/USB-C port on the new Dell XPS 13 (9370) I was guided to use this Dell KB article: 
http://www.dell.com/support/article/no/no/nobsdt1/sln301218/how-to-boot-to-an-external-device-using-usb-type-c-connection?lang=en 

and changed BIOS UEFI Secure Mode from ON to OFF, which have two USB boot options:

1. Legacy Boot: 
USB Storage Device

2. UEFI Boot: 
KingstonDataTraveller

Yes, I used 1. Legacy Boot and got the Leap 15 boot/install screen menu in [1]
It has F1- F6 keys at the bottom.

(Tried also to start 2. UEFI boot, but the Leap 15 font without F-keys at bottom on the 13" 4K UHD display is here horrible small and almost unreadable.)
Comment 7 Terje J. Hanssen 2018-02-28 12:48:43 UTC
I did also an attempt with option 2. UEFI boot (despite the lupe sized font).
See my report comment from this on another Bug 1082359
https://bugzilla.opensuse.org/show_bug.cgi?id=1082359#c11
Comment 8 José Iván López González 2018-03-13 15:27:35 UTC
The error message you are getting "There is no partitions of type bios_grub present. Such a partition ..." should not appear in any case with Leap 15.

Leap 15 is using a new package yast2-storage-ng that replaces the old yast2-storage. Such error message was only in the old yast2-storage package, but not in the new yast2-storage-ng, so there is no way to obtain that message using Leap 15.

Please, make sure you are using last Leap 15 image.
Comment 9 Lukas Ocilka 2018-04-30 15:26:50 UTC
It might have been some older build, Terje do you still see this problem with
new Leap 15? 

I've found the message in old (commented-out) storage:
https://github.com/yast/yast-translations/blob/7ac5bcf28ee254efb0378df73d1edcc310b1ce1b/po/storage/ca.po#L5176-L5191

But it's not anywhere in the code anymore. I'm closing the bug for now as this
seems to be already fixed (Leap 15). If not, please, reopen and attach logs
from Leap 15 installation where you still see this. Thanks!