Public bug reported:

When booting with kernel 6.17.0-19-generic on a system with NVIDIA GPU
(driver 570.211.01) and Intel NVMe SSD, a kernel panic occurs with the
following message:

```
VFS: Unable to mount root fs on unknown-block(0,0)
```


Booting with the previous kernel (6.14.0-37-generic) succeeds without any issue.

## Root Cause:
The hook script `/usr/share/initramfs-tools/hooks/framebuffer-nvidia` provided 
by `nvidia-kernel-common-570` contains the following line:

```
shcopy_modules_dir_filter updates/dkms nvidia
```

This unconditionally copies all NVIDIA DKMS modules (nvidia.ko, nvidia-drm.ko, 
nvidia-modeset.ko, nvidia-uvm.ko, nvidia-peermem.ko) into the initramfs as 
uncompressed .ko files, regardless of whether they are needed at early boot. 
The resulting initramfs was abnormally large (223MB vs ~80MB for other 
kernels). This appears to cause a failure during early boot with kernel 
6.17.0-19-generic, preventing the root filesystem from being mounted.
The same hook exists when using kernel 6.14.0-37-generic, but no kernel panic 
occurs with that kernel.

## Workaround:

```
sudo chmod -x /usr/share/initramfs-tools/hooks/framebuffer-nvidia
sudo update-initramfs -u -k 6.17.0-19-generic
```

Environment:

Output from `lsb_release -rd`:

```
Description:    Ubuntu 24.04.4 LTS
Release:        24.04
```

Machine: Lenovo Yoga Slim 7 ProX 14IAH7, BIOS HMCN31WW
CPU: Intel Alder Lake (ADL-P-M)
Storage: M.2 NVMe SSD
GPU: NVIDIA (driver 570.211.01, DKMS)
OS: Ubuntu 24.04 LTS
Affected kernel: 6.17.0-19-generic (linux-generic-hwe-24.04)
Working kernel: 6.14.0-37-generic
nvidia-kernel-common-570 version: 570.211.01-0ubuntu0.24.04.2
Hook script path: /usr/share/initramfs-tools/hooks/framebuffer-nvidia
  (owned by nvidia-kernel-common-570 per dpkg -S)

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: nvidia-prime 0.8.17.2
ProcVersionSignature: Ubuntu 6.17.0-19.19~24.04.2-generic 6.17.13
Uname: Linux 6.17.0-19-generic x86_64
NonfreeKernelModules: zfs nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr  3 12:51:19 2026
Dependencies:
 
InstallationDate: Installed on 2024-05-06 (697 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
PackageArchitecture: all
SourcePackage: nvidia-prime
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ubuntu
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2147171

Title:
  nvidia driver's modules were included to initramfs by hook script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/2147171/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to