Failed upgrade from 42.3 to Leap 15.2 - Possible Grub/EFI issue?

So I upgraded this box. It is a real one, no VM. It runs just TVHeadend and OScam. I followed this procedure, mutatis mutandis: https://yourlinuxguy.com/?p=1201
The box is a noname with an Asus motherboard. The motherboard has an Intel HW RAID, configured as a 2Tb drive:


lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda           8:0    0 931.5G  0 disk
└─md126       9:126  0   1.8T  0 raid5
  ├─md126p1 259:0    0   156M  0 part  /boot/efi
  ├─md126p2 259:1    0     2G  0 part  [SWAP]
  ├─md126p3 259:2    0    40G  0 part  /
  └─md126p4 259:3    0   1.8T  0 part  /home
sdb           8:16   0 931.5G  0 disk
└─md126       9:126  0   1.8T  0 raid5
  ├─md126p1 259:0    0   156M  0 part  /boot/efi
  ├─md126p2 259:1    0     2G  0 part  [SWAP]
  ├─md126p3 259:2    0    40G  0 part  /
  └─md126p4 259:3    0   1.8T  0 part  /home
sdc           8:32   0 931.5G  0 disk
└─md126       9:126  0   1.8T  0 raid5
  ├─md126p1 259:0    0   156M  0 part  /boot/efi
  ├─md126p2 259:1    0     2G  0 part  [SWAP]
  ├─md126p3 259:2    0    40G  0 part  /
  └─md126p4 259:3    0   1.8T  0 part  /home
sr0          11:0    1   4.3G  0 rom   /run/media/root/openSUSE-Leap-42.3-DVD-x86_64033

The system was initially set up as version 13.x ack in 2016 and then upgraded to 42.3. Reason for the upgrade now was to support a new tuner stick.

The upgrade ran without a hitch, but after a rebootm, all I got was a black screen. I mucked around and managed to get the Grub menu, but none of the alternatives worked, flashed briefly and returned to the menu.

Booted with the 42.3 DVD and selected to run the 15.2 kernel from there. That seems to work. How do I now fix the sysstem so that I can oot the nomal way?

A few things.

You did NOT follow the official openSUSE guide. The one you followed might be OK, but do you really want us to study this first to get an idea of what you probably did?

Upgrading by doing either the Upgrade function from the ISO, or by changing repos URLs and doing it on-line is officialy only supported for one version step. Thus 42.3 > 15.0, 15.0 > 15.1, 15.1 > 15.2. You jumped over two versions. This might function without much problems, but OTOH, when something goes wrong it will be difficult to pinpoint to the cause.

A technical thing about posting code like your lsblk here on the forums:
There is an important, but not easy to find feature on the forums.

Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is including the prompt, the command, the output and the next prompt.

An example is here: Using CODE tags Around your paste.

And, now you know how to post it, it might be usefull to post the repo list as it is after the changes:

zypper lr -d

As “black screen” often means problems with video card/driver, you might also tell which video card you use.

It is also not quite clear to me what the exact sequence during boot is. Please describe that more step by step so we know exactly when can still be seen and when the “black screen” arrives.

OK. Fair enough. I was going to upgrade using the ISO, but when I tried it complained that it could not proceed because I booted from a DVD, but the system to upgrade was UEFI.

#  | Alias                           | Name                                    | Enabled | GPG Check | Refresh | Priority | Type   | URI                                                                      | Service---+---------------------------------+-----------------------------------------+---------+-----------+---------+----------+--------+--------------------------------------------------------------------------+--------
 1 | download.opensuse.org-non-oss   | Main Repository (NON-OSS)               | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/non-oss/        |
 2 | download.opensuse.org-non-oss_1 | Update Repository (Non-Oss)             | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/non-oss/                   |
 3 | download.opensuse.org-oss       | Main Repository (OSS)                   | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/distribution/leap/15.2/repo/oss/            |
 4 | download.opensuse.org-oss_1     | Main Update Repository                  | Yes     | (r ) Yes  | Yes     |   99     | rpm-md | http://download.opensuse.org/update/leap/15.2/oss                        |
 5 | repo-debug                      | openSUSE-Leap-15.2-Debug                | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/oss/      |
 6 | repo-debug-non-oss              | openSUSE-Leap-15.2-Debug-Non-Oss        | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/distribution/leap/15.2/repo/non-oss/  |
 7 | repo-debug-update               | openSUSE-Leap-15.2-Update-Debug         | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/oss/                 |
 8 | repo-debug-update-non-oss       | openSUSE-Leap-15.2-Update-Debug-Non-Oss | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/debug/update/leap/15.2/non-oss/             |
 9 | repo-source                     | openSUSE-Leap-15.2-Source               | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/oss/     |
10 | repo-source-non-oss             | openSUSE-Leap-15.2-Source-Non-Oss       | No      | ----      | ----    |   99     | NONE   | http://download.opensuse.org/source/distribution/leap/15.2/repo/non-oss/ |
tvburk:~ #



Yes. I know that a black screen usually points to the vide, but this box has no odd video, only the onboard from the motherboard, ASUS Z97P.

So basically when I try and boot from an OpenSuse 15.2 DVD and try to boot the system on disk, then it does not find it. If I do so from the 42.3 DVD it finds the system just fine and boots?

One can facilitate more precision and detail in describing by striking ESC right after making the Grub selection, or striking the E key at the Grub menu, and appending to, or removing from, the (usually wrapped) line that begins with linu various parameters. plymouth.enable=0 does roughly the same thing as ESC, while appending nomodeset](SDB:nomodeset: Work Around Graphic Upgrade & Installation Obstacles - openSUSE Wiki) can be added to put your graphics device into a crude and slow fallback mode to facilitate troubleshooting, reconfiguring and collecting logs. From any rescue boot, collect input with output from efibootmgr to paste here within code tags as hcvv and the provided URL describe. Input with output from inxi -GSapz will give us your graphics device and other useful information.

Ah, yes, but at that point was there not even a Grub menu. Just a blank screen. So I followed the docs for boot problems and reinstalled Grub
(https://doc.opensuse.org/documentation/leap/startup/html/book-opensuse-startup/cha-trouble.html)

That brought back Grub, but each entry does nothing. Screen flashes and if I just leave it I get “Failed to boot both default and fallback”.

If I boot from the OpenSuse 15.2 DVD, then select More, then Boot linux. I get “No bootable system found”, but I can start a rescue system and mount the partition manually.

If I boot from the OpenSuse 42,3 DVD, then select More, then Boot linux. I get “Analysing disks”, then a list with one entry:
md126p3 (40Gb btrfs) - OpenSuse Leap 15.2

Select that and I get “Select kernel” with two alternatives for the 15.2 kernel:
.60
.63

Selecting .60 just hangs later
Selecting .63 gives me an option to select alternate names for the boot partition and I select md126p3
Then “Enter kernel options”# where I hit Enter and the system runs

 uname -a
Linux tvburk 5.3.18-lp152.63-default #1 SMP Mon Feb 1 17:31:55 UTC 2021 (98caa86) x86_64 x86_64 x86_64 GNU/Linux

I will have to leave it as this for tonight as my family will kill me is the TV does not work :slight_smile: But I can continue tomorrow.

output from inxi -GSapz

 inxi -GSapzSystem:
  Kernel: 5.3.18-lp152.63-default x86_64 bits: 64 compiler: gcc v: 7.5.0
  parameters: root=/dev/md126p3
  Console: tty 1 wm: gnome-shell dm: GDM 3.34.1 Distro: openSUSE Leap 15.2
Graphics:
  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics
  vendor: ASUSTeK driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0402
  Display: server: X.org 1.20.3 compositor: gnome-shell driver: intel
  unloaded: fbdev,modesetting,vesa
  Message: Advanced graphics data unavailable for root.
Partition:
  ID-1: / raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-2: /.snapshots raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-3: /boot/efi raw size: 156.0 MiB size: 155.8 MiB (99.89%)
  used: 11.0 MiB (7.0%) fs: vfat block size: 512 B dev: /dev/md126p1
  ID-4: /boot/grub2/i386-pc raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-5: /boot/grub2/x86_64-efi raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-6: /home raw size: 1.78 TiB size: 1.78 TiB (99.95%)
  used: 1.56 TiB (87.8%) fs: xfs block size: 512 B dev: /dev/md126p4
  ID-7: /opt raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-8: /srv raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-9: /tmp raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-10: /usr/local raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-11: /var/crash raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-12: /var/lib/mailman raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-13: /var/lib/named raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-14: /var/lib/pgsql raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-15: /var/log raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-16: /var/opt raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-17: /var/spool raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-18: /var/tmp raw size: 40.00 GiB size: 40.00 GiB (100.00%)
  used: 23.10 GiB (57.7%) fs: btrfs block size: 4096 B dev: /dev/md126p3
  ID-19: swap-1 size: 2.01 GiB used: 0 KiB (0.0%) fs: swap
  swappiness: 60 (default) cache pressure: 100 (default) priority: -2
  dev: /dev/md126p2



Let’s see if any 42.3 packages remain installed:

zypper --no-refresh se -si | grep 'tem Pac' | grep -v plication
 zypper --no-refresh se -si | grep 'tem Pac' | grep -v plicationi+ | kernel-default-devel                         | package | 4.4.132-53.1                             | x86_64 | (System Packages)
i+ | kernel-devel                                 | package | 4.4.132-53.1                             | noarch | (System Packages)
i+ | kernel-source                                | package | 4.4.132-53.1                             | noarch | (System Packages)
i+ | libdcadec0                                   | package | 0.2.0-2.1                                | x86_64 | (System Packages)
i+ | libdvbcsa-devel                              | package | 1.1.0-3.3                                | x86_64 | (System Packages)
i  | libdvbcsa1                                   | package | 1.1.0-3.3                                | x86_64 | (System Packages)
i  | libfdk-aac1                                  | package | 0.1.5-1.1                                | x86_64 | (System Packages)
i+ | libgnutls28                                  | package | 3.3.27-1.5                               | x86_64 | (System Packages)
i+ | libhogweed2                                  | package | 2.7.1-12.1                               | x86_64 | (System Packages)
i+ | libnettle4                                   | package | 2.7.1-12.1                               | x86_64 | (System Packages)
i+ | libopencore-amrnb0                           | package | 0.1.4-1.1                                | x86_64 | (System Packages)
i+ | libopencore-amrwb0                           | package | 0.1.4-1.1                                | x86_64 | (System Packages)
i+ | librtmp1                                     | package | 2.4.20151223.fa8646d-1.1                 | x86_64 | (System Packages)
i+ | libvo-aacenc0                                | package | 0.1.2-3.3                                | x86_64 | (System Packages)
i+ | libx264-148                                  | package | 0.148svn20161219-6.1                     | x86_64 | (System Packages)
i  | libx265-116                                  | package | 2.4-2.1                                  | x86_64 | (System Packages)
i+ | libx265-59                                   | package | 1.7-1.1                                  | x86_64 | (System Packages)
i+ | libx265-68                                   | package | 1.8-1.1                                  | x86_64 | (System Packages)
i+ | libx265-79                                   | package | 1.9-1.1                                  | x86_64 | (System Packages)
i+ | libxvidcore4                                 | package | 1.3.4-3.1                                | x86_64 | (System Packages)
i+ | openSUSE-release-dvd                         | package | 42.3-1.202                               | x86_64 | (System Packages)
i  | xboard                                       | package | 4.9.1-4.2                                | x86_64 | (System Packages)
tvburk:~ #



I guess I should whack those kernel sources and replace them with the 15.2 ones. Not that it should affect booting.

The bold indicates GDM and Intel Haswell GT1 graphics class, of which I have one, which is the primary subject of this open bug. So, there is some possibility you are affected. NAICT, mine has not been, but I’m not using GDM, which you are. Switching to LightDM might be a workaround pending a proper fix of that bug.

That may be true, but the OP already has a problem seeing Grub. Thus I doubt that changing the DM will help him there.

Quoting this URL that referred to the provided URL:

…Intel Haswell GT1 graphics commonly seeing a hang at boot…

OK. I can certainly try, but does that explain why the 42.3 DVD finds the boot partition and not the 15.2?

Possibly something to do with changes to BTRFS after 42.3 release?

How exactly you obtained this output if you cannot boot?

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
└─md126 9:126 0 1.8T 0 raid5
├─md126p1 259:0 0 156M 0 part /boot/efi
├─md126p2 259:1 0 2G 0 part [SWAP]
├─md126p3 259:2 0 40G 0 part /
└─md126p4 259:3 0 1.8T 0 part /home

Show output of

efibootmgr -v
lsblk -f
ls -lR /boot

Probably because in his first post the OP says:

Booted with the 42.3 DVD and selected to run the 15.2 kernel from there. That seems to work. How do I now fix the sysstem so that I can oot the nomal way?

I will post output from efibootmgr when I get home, but just asking: Should I still change the display manager and if so is this the right way?
https://en.opensuse.org/SDB:Change_Display_Manager

efibootmgr -v gives "efi variables not suported on this system"
NAME        FSTYPE          LABEL                            UUID                                 FSAVAIL FSUSE% MOUNTPOINTloop0       squashfs
loop1       squashfs
loop2       squashfs                                                                                    0   100% /mounts/mp_0000
loop3       squashfs                                                                                    0   100% /mounts/mp_0001
loop4       squashfs                                                                                    0   100% /mounts/mp_0002
loop5       squashfs                                                                                    0   100% /parts/mp_0000
sda         isw_raid_member
└─md126
  ├─md126p1 vfat                                             83CA-0E29
  ├─md126p2 swap                                             bbd10205-bd7f-4293-a5b6-002dc67376b3
  ├─md126p3 btrfs                                            52e87a4e-3dd2-4244-ba67-8175c16c4c85
  └─md126p4 xfs                                              7121c982-1a34-413c-b752-65b82e97aeca
sdb         isw_raid_member
└─md126
  ├─md126p1 vfat                                             83CA-0E29
  ├─md126p2 swap                                             bbd10205-bd7f-4293-a5b6-002dc67376b3
  ├─md126p3 btrfs                                            52e87a4e-3dd2-4244-ba67-8175c16c4c85
  └─md126p4 xfs                                              7121c982-1a34-413c-b752-65b82e97aeca
sdc         isw_raid_member
└─md126
  ├─md126p1 vfat                                             83CA-0E29
  ├─md126p2 swap                                             bbd10205-bd7f-4293-a5b6-002dc67376b3
  ├─md126p3 btrfs                                            52e87a4e-3dd2-4244-ba67-8175c16c4c85
  └─md126p4 xfs                                              7121c982-1a34-413c-b752-65b82e97aeca
sdd
├─sdd1
└─sdd2      ext4            ADATA-TVH                        bd9dfe6f-f995-4987-825b-63a70ac89c4c    267G    80% /mnt/usb
sr0         iso9660         openSUSE-Leap-15.2-DVD-x86_64695 2020-06-26-06-47-10-29



Note that sdd is the USB disk I used to grab the output

ls -lR /boot



/boot:
total 0
lrwxrwxrwx 1 root root 26 Mar  1 15:09 grub2 -> /mounts/mp_0001/boot/grub2



I cannot get to the system in rescue mode. Tried to give it an address manually and start sshd, but failed.

http://www.dalton.ax/diverse/IMG_20210301_183859.jpg
http://www.dalton.ax/diverse/IMG_20210301_183813.jpg
http://www.dalton.ax/diverse/IMG_20210301_183837.jpgI tried to post links to the pictures of the screen, but failed… Trying again:
www.dalton.ax/diverse/IMG_20210301_183859.jpg
www.dalton.ax/diverse/IMG_20210301_183813.jpg
www.dalton.ax/diverse/IMG_20210301_183859.jpg

OK. Got ip and ssh sorted…



0:rescue:~ # efibootmgr -v
EFI variables are not supported on this system.
0:rescue:~ #

0:rescue:~ # lsblk -f
NAME        FSTYPE          LABEL                            UUID                                 FSAVAIL FSUSE% MOUNTPOINT
loop0       squashfs
loop1       squashfs
loop2       squashfs                                                                                    0   100% /mounts/mp_0000
loop3       squashfs                                                                                    0   100% /mounts/mp_0001
loop4       squashfs                                                                                    0   100% /mounts/mp_0002
loop5       squashfs                                                                                    0   100% /parts/mp_0000
sda         isw_raid_member
└─md126
  ├─md126p1 vfat                                             83CA-0E29
  ├─md126p2 swap                                             bbd10205-bd7f-4293-a5b6-002dc67376b3
  ├─md126p3 btrfs                                            52e87a4e-3dd2-4244-ba67-8175c16c4c85
  └─md126p4 xfs                                              7121c982-1a34-413c-b752-65b82e97aeca
sdb         isw_raid_member
└─md126
  ├─md126p1 vfat                                             83CA-0E29
  ├─md126p2 swap                                             bbd10205-bd7f-4293-a5b6-002dc67376b3
  ├─md126p3 btrfs                                            52e87a4e-3dd2-4244-ba67-8175c16c4c85
  └─md126p4 xfs                                              7121c982-1a34-413c-b752-65b82e97aeca
sdc         isw_raid_member
└─md126
  ├─md126p1 vfat                                             83CA-0E29
  ├─md126p2 swap                                             bbd10205-bd7f-4293-a5b6-002dc67376b3
  ├─md126p3 btrfs                                            52e87a4e-3dd2-4244-ba67-8175c16c4c85
  └─md126p4 xfs                                              7121c982-1a34-413c-b752-65b82e97aeca
sdd
├─sdd1
└─sdd2      ext4            ADATA-TVH                        bd9dfe6f-f995-4987-825b-63a70ac89c4c
sr0         iso9660         openSUSE-Leap-15.2-DVD-x86_64695 2020-06-26-06-47-10-29
0:rescue:~ #



0:rescue:~ # ls -lR /boot
/boot:
total 0
lrwxrwxrwx 1 root root 26 Mar  1 16:21 grub2 -> /mounts/mp_0001/boot/grub2
0:rescue:~ #

You have ESP; this indicates you were using UEFI. What boot mode - UEFI or legacy BIOS - did you use on your system? In what mode was openSUSE installed? You need to boot live image in the same mode.

ls -lR /boot

/boot:
total 0
lrwxrwxrwx 1 root root 26 Mar 1 15:09 grub2 → /mounts/mp_0001/boot/grub2

When I asked you to provide this output I referred to situation when / and /boot/efi were mounted, presumably using correct partitions. It makes no sense to show it from within rescue system.

OK, mount /dev/md126p1 and show its​ content then.