cloud-initramfs-copymods sometimes breaks systems with self-contained kernel/initrd

Bug #1901464 reported by TJ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-initramfs-tools (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I've been working with a colleague with an ubuntu-server install in a Xen virtual machine. The install doesn't use an external kernel/initrd.img but due to having package ubuntu-server installed also installs cloud-initramfs-copymods.

The initial report was the system suffering repeated loss of the xenfs.ko module after reboots. Eventually tracked down to /lib/modules/ being a tmpfs which is created by

/usr/share/initramfs-tools/scripts/init-bottom/copymods

There's a bug which causes it to unconditionally create the tmpfs mount on /lib/ even when the kernel command-line does not contain "copymods=force".

We're trying to figure out how this is getting triggered. On the face of it the only way it could occur is if the rootfs is missing /lib/modules/ OR is missing /lib/modules/$myver or the rootfs hasn't been mounted to $rootmnt at the time this script executes.

This was an encrypted separate /boot/ and / install using debootstrap of ubuntu-server + the kernel packages due to the 20.04 live server installer not being able to deal with this layout. Therefore there may be some quirk of this method triggering the issue, although it is unclear what.

TJ (tj)
description: updated
Revision history for this message
Shura1oplot (s0meuser) wrote :

I have the same issue with ubuntu server (focal) on Raspberry Pi 4. Removing the package cloud-initramfs-copymods solves the problem.

Revision history for this message
Lucas Kanashiro (lucaskanashiro) wrote :

Could you please provide any logs for us to inspect? Also the content of /proc/cmdline if possible?

Another thing you could do here is to test it with Hirsute or Impish to see if you get the same problem. In Focal, we have cloud-initramfs-tools/0.45ubuntu1 and in the latest releases we have cloud-initramfs-tools/0.47ubuntu1, maybe the fix is in there already.

For now, I marking this bug as Incomplete but once you add more information please set it back to New and we will revisit it.

Changed in cloud-initramfs-tools (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for cloud-initramfs-tools (Ubuntu) because there has been no activity for 60 days.]

Changed in cloud-initramfs-tools (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.