[Bug 2148475] Re: Force install of dracut on Raspberry Pi

Dave Jones 2148475 at bugs.launchpad.net
Wed Apr 15 21:49:47 UTC 2026


Well, turns out simply marking cryptsetup-initramfs for removal isn't
good enough, and forcing its removal breaks because it's on the deny
removal list which can't be made universal. On the other hand, forcing
the dracut install *does* remove cryptsetup-initramfs (despite it being
on the deny removal list), and results in a correctly sized initrd, so
that's the solution here.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2148475

Title:
  Force install of dracut on Raspberry Pi

Status in ubuntu-release-upgrader package in Ubuntu:
  Triaged

Bug description:
  On Raspberry Pi installations of Ubuntu, some upgraders (particularly
  from earlier versions, in particular focal) have small boot partitions
  of only 256MB. If dracut is not installed, the initrd in resolute
  expands to such a size that two copies of the initrd no longer fit on
  this boot partition (largely due to the replacement of busybox with
  rust-coreutils). If dracut *is* installed, the exclusion of various
  kernel modules brings the initrd back down to a size that fits.

  Unfortunately, we cannot know the initrd size in advance (it's
  generated), and allowing the upgrade to proceed without installing
  dracut results in a broken (unbootable) system because the new boot
  assets do not fit. Expanding the partition is impractical as it is the
  first on the disk image.

  Unfortunately, cryptsetup-initramfs blocks the installation of dracut,
  and this package was included in the base image under noble and some
  earlier editions. To ensure the upgrade installs dracut (and thus does
  not leave upgraders with a broken system), we must force the removal
  of cryptsetup-initramfs if it is present. This will only be done on Pi
  images (detected by the presence of the ubuntu-{server,desktop}-raspi
  meta packages) to avoid forcing the removal on other systems.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2148475/+subscriptions





More information about the foundations-bugs mailing list