kernel modules going missing after reboot

Bug #1967593 reported by John Smith
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cloud-initramfs-tools (Ubuntu)
Confirmed
Undecided
Dave Jones
linux-kvm (Ubuntu)
Confirmed
Undecided
Unassigned
linux-lowlatency (Ubuntu)
Confirmed
Undecided
Unassigned
ubuntu-meta (Ubuntu)
Confirmed
Critical
Unassigned

Bug Description

EDIT: There are no accurate results in the package search, but it is for the kernel shown below Linux 5.15.0-23-generic x86_64. Also for the low latency kernel and other versions 5.4, 5.13, 5.14, 5.17. So it is not kernel specific. It must be a problem with configuration, but reinstalling doesnt fix it.

EDIT2: it turns out this is caused by the cloud-initramfs-copymods package mounting over modules locations. Removed it and reinstalled kernel modules package (extras didnt seem necessary, but probably prudent too).

This affects several different kernels I've tried in 22.04.

This post basically sums it up:
https://unix.stackexchange.com/questions/405146/removed-lib-modules-folder-after-every-reboot
detailed answer: https://unix.stackexchange.com/a/499580/346155

And this one from upgrading from 20.04 to 22.04:
https://askubuntu.com/questions/1400470/kernel-module-not-getting-installed-after-upgrade

Basically, for some reason the kernel modules are being mounted over after reboot.

My image was built on top of a cloud-init image, but removing the recommeded package "cloud-initramfs-copymods" that mounts over modules didnt work for me. Adding the snd_hda_intel module to the boot config /etc/initramfs-tools/modules did fix my issue for this module. But how many others will not be available?
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu80
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: user 2189 F.... pulseaudio
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
DistroRelease: Ubuntu 22.04
IwConfig:
 lo no wireless extensions.

 enp1s0 no wireless extensions.

 virbr0 no wireless extensions.
Lsusb:
 Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Lsusb-t:
 /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
 /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
     |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 480M
MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
Package: linux (not installed)
ProcFB: 0 virtio_gpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-23-generic root=UUID=5d51cbd2-a1de-48f6-b8b6-00709c787fa0 ro
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-23-generic N/A
 linux-backports-modules-5.15.0-23-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu1
RfKill:

Tags: jammy uec-images
Uname: Linux 5.15.0-23-generic x86_64
UpgradeStatus: Upgraded to jammy on 2022-04-01 (1 days ago)
UserGroups: libvirt sudo
WifiSyslog:

_MarkForUpload: True
dmi.bios.date: 04/01/2014
dmi.bios.release: 0.0
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.13.0-1ubuntu1.1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.version: pc-q35-4.2
dmi.modalias: dmi:bvnSeaBIOS:bvr1.13.0-1ubuntu1.1:bd04/01/2014:br0.0:svnQEMU:pnStandardPC(Q35+ICH9,2009):pvrpc-q35-4.2:cvnQEMU:ct1:cvrpc-q35-4.2:sku:
dmi.product.name: Standard PC (Q35 + ICH9, 2009)
dmi.product.version: pc-q35-4.2
dmi.sys.vendor: QEMU
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu80
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: user 2189 F.... pulseaudio
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
DistroRelease: Ubuntu 22.04
IwConfig:
 lo no wireless extensions.

 enp1s0 no wireless extensions.

 virbr0 no wireless extensions.
Lsusb:
 Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Lsusb-t:
 /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
 /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
     |__ Port 1: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 480M
MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
Package: linux (not installed)
ProcFB: 0 virtio_gpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-23-generic root=UUID=5d51cbd2-a1de-48f6-b8b6-00709c787fa0 ro
ProcVersionSignature: Ubuntu 5.15.0-23.23-generic 5.15.27
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-23-generic N/A
 linux-backports-modules-5.15.0-23-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu1
RfKill:

Tags: jammy uec-images
Uname: Linux 5.15.0-23-generic x86_64
UpgradeStatus: Upgraded to jammy on 2022-04-01 (1 days ago)
UserGroups: libvirt sudo
WifiSyslog:

_MarkForUpload: True
dmi.bios.date: 04/01/2014
dmi.bios.release: 0.0
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.13.0-1ubuntu1.1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.version: pc-q35-4.2
dmi.modalias: dmi:bvnSeaBIOS:bvr1.13.0-1ubuntu1.1:bd04/01/2014:br0.0:svnQEMU:pnStandardPC(Q35+ICH9,2009):pvrpc-q35-4.2:cvnQEMU:ct1:cvrpc-q35-4.2:sku:
dmi.product.name: Standard PC (Q35 + ICH9, 2009)
dmi.product.version: pc-q35-4.2
dmi.sys.vendor: QEMU

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1967593

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
John Smith (xxasdqwe) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected jammy uec-images
description: updated
Revision history for this message
John Smith (xxasdqwe) wrote : CRDA.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : CurrentDmesg.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lspci.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lspci-vt.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lsusb-v.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : PaInfo.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcEnviron.txt

apport information

description: updated
Revision history for this message
John Smith (xxasdqwe) wrote : AlsaInfo.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : CRDA.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : CurrentDmesg.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lspci.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lspci-vt.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lsusb-v.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : PaInfo.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcEnviron.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcInterrupts.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcModules.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : PulseList.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : UdevDb.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : acpidump.txt

apport information

affects: linux-hwe-5.15 (Ubuntu) → linux-kvm (Ubuntu)
Revision history for this message
John Smith (xxasdqwe) wrote : AlsaInfo.txt

apport information

description: updated
Revision history for this message
John Smith (xxasdqwe) wrote : CRDA.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : CurrentDmesg.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lspci.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lspci-vt.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : Lsusb-v.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : PaInfo.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcEnviron.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcInterrupts.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : ProcModules.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : PulseList.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : UdevDb.txt

apport information

Revision history for this message
John Smith (xxasdqwe) wrote : acpidump.txt

apport information

description: updated
John Smith (xxasdqwe)
affects: linux (Ubuntu) → cloud-initramfs-tools (Ubuntu)
description: updated
Changed in cloud-initramfs-tools (Ubuntu):
status: Incomplete → Confirmed
Changed in ubuntu-meta (Ubuntu):
importance: Undecided → Critical
milestone: none → ubuntu-22.04
tags: added: rls-ff-incoming
tags: added: rls-jj-incoming
removed: rls-ff-incoming
tags: added: fr-2225
tags: removed: rls-jj-incoming
Changed in cloud-initramfs-tools (Ubuntu):
assignee: nobody → Dave Jones (waveform)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux-kvm (Ubuntu):
status: New → Confirmed
Changed in linux-lowlatency (Ubuntu):
status: New → Confirmed
Changed in ubuntu-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
Simon Roscic (simon.roscic) wrote :

I have the same problem, this bug has been around for quite some time as it seems. Is there no fix available?

I have this problem with multiple machines, but I don't even find any useful information about the copymods package aside from this bugreport and the related posts.

To post a comment you must log in.