Bug 2173284 - Kernel 6.1.13 not booting in Huawei Matebook D15
Summary: Kernel 6.1.13 not booting in Huawei Matebook D15
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 37
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Robbie Harwood
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-25 11:39 UTC by reecegaines44
Modified: 2024-01-12 22:51 UTC (History)
25 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-01-12 22:51:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Kernel not loading (2.46 MB, image/png)
2023-02-25 12:20 UTC, reecegaines44
no flags Details
output after removing rhgb and quiet (6.92 MB, image/jpeg)
2023-02-25 12:39 UTC, reecegaines44
no flags Details
Kernel command line (3.57 MB, image/jpeg)
2023-02-25 13:50 UTC, reecegaines44
no flags Details
/tmp/log.txt (379.76 KB, text/plain)
2023-02-28 20:37 UTC, reecegaines44
no flags Details
/boot/loader/entries/346de757008a4818bd970ded9825aa02-6.1.13-200.fc37.x86_64.conf (339 bytes, text/plain)
2023-02-28 20:40 UTC, reecegaines44
no flags Details
sudo find /boot (12.05 KB, text/plain)
2023-03-01 17:55 UTC, reecegaines44
no flags Details

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.

Comment 20 Aoife Moloney 2023-11-23 01:19:47 UTC
This message is a reminder that Fedora Linux 37 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 37 on 2023-12-05.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '37'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 37 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 21 Aoife Moloney 2024-01-12 22:51:34 UTC
Fedora Linux 37 entered end-of-life (EOL) status on 2023-12-05.

Fedora Linux 37 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.