UEFI install issues with LEAP 42.1

Posting a question about LEAP installation that failed I fat fingered and
posted to another group. Basically, booting the DVD/USB image on a UEFI HP
machine did nothing beyond a blank screen and frozen box. nrickert posted
the folowing reply:

> My advice:

> - Disable secure boot
> - Install.
> - During install, check the boot settings. Make sure that “Enable
> secure boot support” is checked.
> - Copy the “shim.efi” from 13.2 to “/boot/efi/EFI/opensuse”. You can
> do that after the reboot if you wish.
> - Enable secure boot again.

After jumping in when I first got this machine and discovering the quagmire
created by mixed UEFI/MBR installations I was treading softly but this
sounded reasonable, so I tried it. Disabling secure boot, I got to the
partition setup step of the install, selected the partitions I wanted to use

  • including the boot/efi used by secure boot. Proceeding to the next step I
    got a warning dialog about not having a “bios-grub partition present”. The
    system wanted an unformatted partition of this type. I pressed on, figuring
    that since there was no empty space for such a partition to be created I was
    reasonably safe. Turns out that was a valid assumption but the installation
    threw errors when it tried to install grub - obviously.

Net result, the only errors logged during the install was that failure to
install grub2. Using the 13.2 live DVD, I booted, did the chroot to get
into 13.2 to revive the boot using its grub install and examined the hard
drive, figuring that GPT never created the system partition that MBR drives
used. To my surprise, gparted revealed a 1Gb hidden partition at the head
of the disc. Following is the listing of the drive layout.

/CODE
main12:~ # parted -l
Model: ATA ST2000DM001-9YN1 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number Start End Size File system Name
Flags
1 1049kB 1074MB 1073MB ntfs Basic data partition
boot, hidden, legacy_boot
2 1074MB 1451MB 377MB fat32 EFI system partition
boot
3 1451MB 1585MB 134MB Microsoft reserved partition
msftres
4 1585MB 77.0GB 75.4GB ntfs Basic data partition
5 77.0GB 77.5GB 472MB ntfs
hidden, diag
6 77.5GB 77.9GB 367MB ntfs
hidden, diag
7 77.9GB 99.3GB 21.5GB ext4 primary
8 99.3GB 339GB 239GB ext4 primary
9 339GB 351GB 12.6GB linux-swap(v1) primary
10 351GB 383GB 32.2GB ext4 primary
11 383GB 1170GB 786GB ext4 primary
12 1170GB 1202GB 32.2GB ext4 primary
13 1202GB 1988GB 786GB ext4 primary
14 1988GB 2000GB 12.0GB ntfs Basic data partition
hidden
/CODE

Out of curiosity, I looked to see what fdisk thought was there. The result
was similar other than the first 2 partitions on the disk. I realize that
fdisk is not the best tool when dealing with GPT discs, but I was curious
about that ntfs file system that parted thought was used by partition 1.
fdisk returned:

/CODE

Start End Size Type Name

1 2048 2097151 1023M EFI System Basic data partition
2 2097152 2834431 360M EFI System EFI system partition
/CODE

Net result of a long afternoon and evening - avoiding shoveling snow with 45
to 60 kt winds outside - wasn’t really a bust but more questions. I’m about
ready to kiss off leap 42.1 and wait for a fixed release. The legacy box
has 42.1 installed and it does not impress me enough to spend a lot more
time getting it on the main machine.

Since there is no live build for 42.1 yet, how close does the kernel version
have to be to that used by leap in order to boot to the DVD/USB live version
then chroot to the legacy installed version on the hard rive in order to
install the needed grub code to boot it?

What is that first partition used for? I know what it does with legacy MBR
type discs but what’s there with GPT drives?

If I have an empty hard drive, how do I set it up for GPT? A scratch GPT
drive would sure be useful for tinkering!


Will Honea

That should only happen when you boot the installer in Legacy mode. It should not happen if you boot with UEFI.

Apparenly, when you disabled secure-boot, your firmware (BIOS) took that to imply legacy booting.

Check whether there is an option to:

disable secure-boot;
also disable CSM (compatibility support module).

If you can disable both of those you should be able to boot the install image in UEFI mode without secure-boot.

Incidentally, another problem with UEFI support has cropped up with Leap. See bug 954126. You might need to use both “shim.efi” and “grub.efi” from 13.2 to avoid both problems.

nrickert wrote:

> Incidentally, another problem with UEFI support has cropped up with
> Leap. See ‘bug 954126’
> (https://bugzilla.opensuse.org/show_bug.cgi?id=954126). You might need
> to use both “shim.efi” and “grub.efi” from 13.2 to avoid both problems.

You are a gold mine of useful information! Thanks, again.

I’m pretty much inclined to sit this release out and just play with it to
see how much of an odd-ball this HP box really is. I haven’t had time to
play with the boot options you mentioned. The wife retired last summer and
promptly discovered a bottomless honey-do jar so time has been a bit limited
but I’ll have to try that trick of disabling both legacy and secure boot.
Worst case, I’ll just have to go back and reset the boot mode in bios. I
did note that the bios setup was happy to let let me disable both but I
never tried booting in that configuration.


Will Honea

nrickert wrote:

> disable secure-boot;
> also disable CSM (compatibility support module).
>
> If you can disable both of those you should be able to boot the install
> image in UEFI mode without secure-boot.
>

Sheer genius - I would never have thought of that but it actually worked.
The bios menu seemed to imply that you could enable either secure or
“legacy” in its terminology but it permitted me to disable both without any
complaint so…

Install went like clockwork, reboot (with the same bios setup) worked with
no problem. Looks like I’ve got several bugs to report with network setup -
all sorts of issues with a multi-homed wired-wireless combo but that’s been
there from ms-1. I even managed to copy over the shim.efi file from the
(non-secure setup) after booting leap.

Thanks again for the suggestions.


Will Honea