Bug 2173284

Summary: Kernel 6.1.13 not booting in Huawei Matebook D15
Product: [Fedora] Fedora Reporter: reecegaines44
Component: grub2Assignee: Robbie Harwood <rharwood>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 37CC: acaringi, adscvr, airlied, alciregi, bskeggs, fmartine, hdegoede, hpa, jarodwilson, jglisse, josef, kernel-maint, lgoncalv, linville, lkundrak, masami256, mchehab, mlewando, nfrayer, pgnet.dev, pjones, ptalbert, rharwood, steved, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Kernel not loading
none
output after removing rhgb and quiet
none
Kernel command line
none
/tmp/log.txt
none
/boot/loader/entries/346de757008a4818bd970ded9825aa02-6.1.13-200.fc37.x86_64.conf
none
sudo find /boot none

Description reecegaines44 2023-02-25 11:39:12 UTC
Description of problem: Kernel (6.13.1-200) doesn't start, leaves a black screen saying "loading kernel 6.13 etc." and freezes there, in Huawei Matebook D15. Booting an old kernel works normally.

Steps to Reproduce:
1.Install Fedora in Huawei Matebook D15
2.Update kernel to version 6.13
3.Try booting the system

Actual results: System doesn't start.


Expected results: System starting normally

Comment 1 Zbigniew Jędrzejewski-Szmek 2023-02-25 11:48:41 UTC
I assume that you're not using systemd-boot and your report has nothing to do with systemd-boot.

Do you mean 6.0.13? At least make a photo of the error and attach it here.

Comment 2 reecegaines44 2023-02-25 12:20:57 UTC
Created attachment 1946314 [details]
Kernel not loading

After booting from grub, this is what the frozen screen looks like.

Comment 3 reecegaines44 2023-02-25 12:26:10 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #1)
> I assume that you're not using systemd-boot and your report has nothing to
> do with systemd-boot.
> 
> Do you mean 6.0.13? At least make a photo of the error and attach it here.

Hi,
I tried attaching the image of the bug. I'm new to Linux and this is the first time I report a bug, so I don't really now what to look for. The kernel is the one in the picture. If this is not systemd-boot related (I don't know, I read the label description and it seemed to me it could be that), can you please point me what the correct label is, so I can change it?

Comment 4 Zbigniew Jędrzejewski-Szmek 2023-02-25 12:32:48 UTC
So it's 6.1.13-200.fc37.x86_64.

The correct label in this case is generally 'kernel'. I already set to that now.

Edit the grub command line to remove 'rhgb' and 'quiet'. (Press 'e' at the
grub menu, and then do the edits and boot with ctrl-x. This is just a one-time
modification that has no permanent effect.)
Maybe you'll be able to see some more useful messages then. Please attach another
photo in that case.

Comment 5 reecegaines44 2023-02-25 12:39:47 UTC
Created attachment 1946321 [details]
output after removing rhgb and quiet

Comment 6 Zbigniew Jędrzejewski-Szmek 2023-02-25 12:55:11 UTC
The interesting part is:
VFS: Cannot open root device "nvme0n1p9" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
CPU: 3 PID: 1 Comm: swapper/0 Not tainted 6.1.13-200.fc37.x86_64 #1
Hardware name: HUAWEI BOHB-WAX9/BOBH-WAX9-PCB-B2, BIOS 1.42 03/25/2022

So this looks more more like a problem with the initrd rather than the kernel.
Can you attach a) the kernel command line,
b) the initrd ('ls /boot/*/6.1.13-200.fc37.x86_64/initrd' should show the path)

Comment 7 reecegaines44 2023-02-25 12:58:34 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #6)
> The interesting part is:
> VFS: Cannot open root device "nvme0n1p9" or unknown-block(0,0): error -6
> Please append a correct "root=" boot option; here are the available
> partitions:
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(0,0)
> CPU: 3 PID: 1 Comm: swapper/0 Not tainted 6.1.13-200.fc37.x86_64 #1
> Hardware name: HUAWEI BOHB-WAX9/BOBH-WAX9-PCB-B2, BIOS 1.42 03/25/2022
> 
> So this looks more more like a problem with the initrd rather than the
> kernel.
> Can you attach a) the kernel command line,
> b) the initrd ('ls /boot/*/6.1.13-200.fc37.x86_64/initrd' should show the
> path)

I don't know how to do that. What should I do?

Comment 8 Zbigniew Jędrzejewski-Szmek 2023-02-25 13:32:14 UTC
For the kernel command line: in the boot menu, press 'e' to edit, and then just take a picture of the text.
For the initrd: boot into the working kernel, and attach the file /boot/*/6.1.13-200.fc37.x86_64/initrd.
(The second component of the path should be a long hexadecimal number, e.g. it's
/boot/64caa68cc47c42528071c0e1175bb34e/6.1.13-200.fc37.x86_64/initrd on my machine.)

Comment 9 reecegaines44 2023-02-25 13:50:17 UTC
Created attachment 1946335 [details]
Kernel command line

Comment 10 reecegaines44 2023-02-25 13:57:18 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #8)
> For the kernel command line: in the boot menu, press 'e' to edit, and then
> just take a picture of the text.
> For the initrd: boot into the working kernel, and attach the file
> /boot/*/6.1.13-200.fc37.x86_64/initrd.
> (The second component of the path should be a long hexadecimal number, e.g.
> it's
> /boot/64caa68cc47c42528071c0e1175bb34e/6.1.13-200.fc37.x86_64/initrd on my
> machine.)

I couldn't find any folder under /boot/ with an hexadecimal to use for the path /boot/*/; I found a hexadecimal number though, in the path /boot/loader/entries/; is that the number you're looking for? In /boot/loader/entries/346de757008a4818bd970ded9825aa02-6.1.13-200.fc37.x86_64.conf, I suppose 346de757008a4818bd970ded9825aa02 is the number(?)

Comment 11 Zbigniew Jędrzejewski-Szmek 2023-02-25 17:45:58 UTC
Oh, oh. The kernel command line is OK, but the boot loader entry has no initrd!

Please attach versions of packages:
 rpm -qa | grep -E 'grub2|systemd-udev|dracut'

Comment 12 reecegaines44 2023-02-25 18:09:53 UTC
(In reply to Zbigniew Jędrzejewski-Szmek from comment #11)
> Oh, oh. The kernel command line is OK, but the boot loader entry has no
> initrd!
> 
> Please attach versions of packages:
>  rpm -qa | grep -E 'grub2|systemd-udev|dracut'

This is the output from my terminal.

dracut-057-5.fc37.x86_64
dracut-network-057-5.fc37.x86_64
dracut-live-057-5.fc37.x86_64
dracut-config-rescue-057-5.fc37.x86_64
dracut-squash-057-5.fc37.x86_64
systemd-udev-251.11-2.fc37.x86_64
grub2-common-2.06-88.fc37.noarch
grub2-tools-minimal-2.06-88.fc37.x86_64
grub2-tools-2.06-88.fc37.x86_64
grub2-pc-modules-2.06-88.fc37.noarch
grub2-pc-2.06-88.fc37.x86_64
grub2-efi-ia32-2.06-88.fc37.x86_64
grub2-efi-x64-2.06-88.fc37.x86_64
grub2-tools-extra-2.06-88.fc37.x86_64
grub2-efi-ia32-cdboot-2.06-88.fc37.x86_64
grub2-efi-x64-cdboot-2.06-88.fc37.x86_64
grub2-tools-efi-2.06-88.fc37.x86_64

Comment 13 Zbigniew Jędrzejewski-Szmek 2023-02-28 10:04:37 UTC
It seems to be something on the interface between kernel-install and grub2 kernel-install plugin.

Please attach
1) /boot/loader/entries/346de757008a4818bd970ded9825aa02-6.1.13-200.fc37.x86_64.conf
2) Run 'dnf history info kernel-core >/tmp/log.txt' and attach /tmp/log.txt

Comment 14 reecegaines44 2023-02-28 20:37:54 UTC
Created attachment 1947045 [details]
/tmp/log.txt

Comment 15 reecegaines44 2023-02-28 20:40:14 UTC
Created attachment 1947046 [details]
/boot/loader/entries/346de757008a4818bd970ded9825aa02-6.1.13-200.fc37.x86_64.conf

Comment 16 Zbigniew Jędrzejewski-Szmek 2023-03-01 08:47:26 UTC
OK. So /boot/loader/entries/346de757008a4818bd970ded9825aa02-6.1.13-200.fc37.x86_64.conf has:
  linux /vmlinuz-6.1.13-200.fc37.x86_64
  initrd /initramfs-6.1.13-200.fc37.x86_64.img
This is what expect /usr/lib/kernel/install.d/20-grub.install to create.
The installation log from dnf doesn't show anything out of place either.

But as established in comment#9, the actual grub2 dynamic configuration created
from this does not have an initrd line. In fact, it also has a different root= line.
I'll reassign the bug to grub2, because the problem seems to be there, but
I admit that I don't know what to make of this.

One more question: please attach the output of 'sudo find /boot'.

Comment 17 reecegaines44 2023-03-01 17:55:08 UTC
Created attachment 1947273 [details]
sudo find /boot

Comment 18 Zbigniew Jędrzejewski-Szmek 2023-03-03 11:27:44 UTC
> /boot/initramfs-6.1.13-200.fc37.x86_64.img

OK, so it really looks like grub2 makes up the invalid config entry out of thin air. ¯\_(ツ)_/¯

Comment 19 Marta Lewandowska 2023-05-26 07:20:48 UTC
Hi,
have you managed to resolve this, or are you still not able to boot this kernel?

If you are still having problems, could you please paste the output of the commmands:

lsblk -f

and also

grubby --info ALL
(or alternately: cat /boot/loader/entries/*)

thanks.