Ubuntu Studio CD image build failure

Bug #2119012 reported by Juerg Haefliger
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Confirmed
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned
Plucky
Won't Fix
Undecided
Unassigned
Questing
Confirmed
Undecided
Unassigned
lowlatency-kernel (Ubuntu)
Fix Released
Undecided
Juerg Haefliger
Noble
Fix Released
Undecided
Juerg Haefliger
Plucky
Fix Released
Undecided
Juerg Haefliger
Questing
Fix Released
Undecided
Juerg Haefliger

Bug Description

[ Impact ]

Ubuntu Studio uses the lowlatency kernel. With 6.14, the lowlatency kernel is just the generic kernel with some bootargs to make it lowlatency. This breaks the Ubuntu Studio livefs and CD image builds.

https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/noble/ubuntustudio

Problem 1)

The postinst hook of the lowlatency-kernel package calls update-grub unconditionally which fails if the package is installed in a chroot.

From a livefs build log:

Processing triggers for dbus (1.14.10-4ubuntu4.1) ...
Processing triggers for libgtk-3-0t64:amd64 (3.24.41-4ubuntu1.3) ...
Processing triggers for shared-mime-info (2.4-4) ...
Processing triggers for libgtk2.0-0t64:amd64 (2.24.33-4ubuntu1.1) ...
Processing triggers for desktop-file-utils (0.27-2build1) ...
Processing triggers for initramfs-tools (0.142ubuntu25.5) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.5) ...
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for dictionaries-common (1.29.7) ...
Processing triggers for linux-image-6.14.0-24-generic (6.14.0-24.24~24.04.3) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.14.0-24-generic
cryptsetup: ERROR: Couldn't resolve device overlay
cryptsetup: WARNING: Couldn't determine root device
cryptsetup: ERROR: Couldn't resolve device /dev/vdb
Errors were encountered while processing:
 lowlatency-kernel

Problem 2)

The kernel flavor name changed from 'lowlatency' to 'generic'. This breaks livecd-rootfs.

[2025-07-30 21:10:37] No catalog entry template for standard.live
[2025-07-30 21:10:38] P: Begin unmounting filesystems...
[2025-07-30 21:10:38] P: Saving caches...
[2025-07-30 21:10:38] No kernel output for lowlatency!
[2025-07-30 21:10:38] P: Begin unmounting filesystems...
[2025-07-30 21:10:38] P: Saving caches...
[2025-07-30 21:10:38] Build failed

Problem 3)

The ISO kernel is the generic kernel now so needs additional boot args to make it lowlatency. Otherwise 'Try Ubuntu Studio' will run the generic kernel which is likely not what we want.

[ Test Plan ]

1. Trigger an Ubuntu Studio livefs build and watch it succeed.
2. Boot a resulting CD image and verify the running kernel is lowlatency.
3. Install Ubuntu Studio and verify the running kernel is lowlatency.

[ Where Problems Could Occur ]

Other consumers of livecd-rootfs could fail, i.e., other livefs builds might fail due to livecd-rootfs changes.

Machines that have the lowlatency-kernel package installed might not update grub.cfg and hence not switch the kernel to lowlatency but continue to run with generic settings.

Related branches

Juerg Haefliger (juergh)
summary: - Installation fails in a container
+ Installation fails in a chroot
description: updated
Juerg Haefliger (juergh)
Changed in lowlatency-kernel (Ubuntu Questing):
assignee: nobody → Juerg Haefliger (juergh)
Changed in lowlatency-kernel (Ubuntu Plucky):
assignee: nobody → Juerg Haefliger (juergh)
Changed in lowlatency-kernel (Ubuntu Noble):
assignee: nobody → Juerg Haefliger (juergh)
Paride Legovini (paride)
Changed in lowlatency-kernel (Ubuntu Noble):
milestone: none → ubuntu-24.04.3
Juerg Haefliger (juergh)
summary: - Installation fails in a chroot
+ Ubuntu Studio CD image build fails
summary: - Ubuntu Studio CD image build fails
+ Ubuntu Studio CD image build failure
description: updated
description: updated
Revision history for this message
Juerg Haefliger (juergh) wrote (last edit ):

dediff for plucky

description: updated
Revision history for this message
Juerg Haefliger (juergh) wrote :

debdiff for noble

Revision history for this message
Juerg Haefliger (juergh) wrote :

debdiff for noble

Revision history for this message
Dan Bungert (dbungert) wrote (last edit ):

Looking at this for livecd-rootfs.

For livecd-rootfs plucky, I'm marking this bug "Won't Fix" as I don't see the scenario where we're reissuing an ISO. Please update this bug if I'm off the mark here.

Changed in livecd-rootfs (Ubuntu Plucky):
status: New → Won't Fix
Changed in livecd-rootfs (Ubuntu Noble):
status: New → In Progress
Changed in livecd-rootfs (Ubuntu Questing):
status: New → In Progress
Changed in livecd-rootfs (Ubuntu Noble):
assignee: nobody → Dan Bungert (dbungert)
Changed in livecd-rootfs (Ubuntu Questing):
assignee: nobody → Dan Bungert (dbungert)
Revision history for this message
Dan Bungert (dbungert) wrote :

What's going on with questing? ISO builds pass there for instance, where I would expect similar changes to be needed.

Uploaded livecd-rootfs for noble. As Michael noted, this bug should be updated for the SRU template.

Dan Bungert (dbungert)
Changed in livecd-rootfs (Ubuntu Questing):
status: In Progress → New
assignee: Dan Bungert (dbungert) → nobody
Changed in livecd-rootfs (Ubuntu Noble):
assignee: Dan Bungert (dbungert) → nobody
status: In Progress → Fix Committed
tags: added: patch
Juerg Haefliger (juergh)
description: updated
Revision history for this message
Juerg Haefliger (juergh) wrote :

I need to look at Plucky and Questing. I think they're currently pulling in the generic kernel which is why we don't see the failure. But that feels wrong.

Paride Legovini (paride)
Changed in lowlatency-kernel (Ubuntu Noble):
status: New → In Progress
Juerg Haefliger (juergh)
description: updated
Revision history for this message
Dan Bungert (dbungert) wrote :

lowlatency-kernel uploaded for noble. further uploads needed to satisfy the "Development Release Fixed First" requirement.

Changed in lowlatency-kernel (Ubuntu Noble):
status: In Progress → Fix Committed
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Ubuntu Studio switched to the generic kernel starting with Oracular. We added boot menu entries to make it a lowlatency kernel starting with Oracular, probably similar to what is being accomplished by the lowlatency-kernel package.

Hence why you're not seeing issues beyond Noble for this.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

There is already a livecd-rootfs upload in noble-proposed, fixing LP: #2069391, which still needs verification.

1. https://launchpad.net/ubuntu/+source/livecd-rootfs/24.04.90

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Please test proposed package

Hello Juerg, or anyone else affected,

Accepted livecd-rootfs into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/24.04.92 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-noble
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Hello Juerg, or anyone else affected,

Accepted lowlatency-kernel into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lowlatency-kernel/1.3~24.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in livecd-rootfs (Ubuntu):
status: New → Confirmed
Changed in lowlatency-kernel (Ubuntu Plucky):
status: New → Confirmed
Changed in lowlatency-kernel (Ubuntu):
status: New → Confirmed
Revision history for this message
Juerg Haefliger (juergh) wrote :

Triggered an ubuntustudio livefs build using noble-proposed which now passes:

https://launchpad.net/~juergh/+livefs/ubuntu/noble/ubuntustudio/+build/820146

From the build log:
Get:87 http://archive.ubuntu.com/ubuntu noble-proposed/universe amd64 lowlatency-kernel amd64 1.3~24.04.1 [2142 B]
Get:161 http://ftpmaster.internal/ubuntu noble-proposed/main amd64 livecd-rootfs amd64 24.04.92 [130 kB]

tags: added: verification-done-noble
removed: verification-needed-noble
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lowlatency-kernel - 1.3

---------------
lowlatency-kernel (1.3) questing; urgency=medium

  * Skip update-grub if in a chroot (LP: #2119012)

 -- Juerg Haefliger <email address hidden> Tue, 29 Jul 2025 17:33:19 +0200

Changed in lowlatency-kernel (Ubuntu Questing):
status: Confirmed → Fix Released
Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

folks, correct me if I'm wrong, but the patch fixes only problem #2.

this package still calls update-grub unconditionally and breaks MAAS images.

Juerg Haefliger (juergh)
description: updated
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

The check that was added was looking for the grub config file, and if update-grub exists. Are this criteria met in what you described in comment #17?

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

We need 3 tests according to the test plan, and only one was done (in comment #15). Reverting verification flags.

tags: added: verification-needed-noble
removed: verification-done-noble
Revision history for this message
Juerg Haefliger (juergh) wrote (last edit ):

We can only test the full pipeline once all packages are released.

Revision history for this message
Juerg Haefliger (juergh) wrote :

I cannot test #2 and #3 without CD images which I won't get until the packages are released and official livefs are built.

Revision history for this message
Juerg Haefliger (juergh) wrote (last edit ):

> Ubuntu Studio switched to the generic kernel starting with Oracular. We added boot menu entries to
> make it a lowlatency kernel starting with Oracular, probably similar to what is being accomplished
> by the lowlatency-kernel package.

I think you still need changes to make the ISO boot kernel lowlatency. Otherwise 'Try Ubuntu Studio' will run with generic and not lowlatency settings.

Similar to: https://git.launchpad.net/~juergh/debian-cd/+git/ubuntu/commit/?id=69635ea048f8d62e701babdfbb306c12107fab2d

Revision history for this message
Juerg Haefliger (juergh) wrote (last edit ):

FWIW, I've built an ISO image locally using noble-proposed plus the debian-cd changes and verified:

1. Booted a VM from the ISO, selected 'Try Ubuntu Studio' and verified that the running kernel is lowlatency:
$ cat /proc/cmdline
BOOT_IMAGE=/casper/vmlinuz --- quiet splash preempt=full rcu_nocbs=all

2. Installed Ubuntu Studio, rebooted and verified the running kernel is lowlatency:
$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.14.0-27-generic root=UUID=3c80871f-b3fa-410e-994c-7d0eba21333d ro quiet splash preempt=full rcu_nocbs=all threadirqs vt.handoff=7

This is as much verification as I can do using an unofficial and locally built ISO.

Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

please disregard my comment in #17, I looked only at the linked MPs, I didn't notice the patch in #2

Juerg Haefliger (juergh)
description: updated
Juerg Haefliger (juergh)
description: updated
Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :
Revision history for this message
Juerg Haefliger (juergh) wrote (last edit ):

> We already have https://git.launchpad.net/ubuntustudio-default-settings/tree/etc/default/grub.d/ubuntustudio.cfg

This has no effect on the running ISO kernel.

# mount questing-desktop-amd64.iso tmp/
mount: tmp: WARNING: source write-protected, mounted read-only.
# cat tmp/boot/grub/grub.cfg | grep -A4 'Ubuntu Studio'
menuentry "Try or Install Ubuntu Studio" {
 set gfxpayload=keep
 linux /casper/vmlinuz --- quiet splash
 initrd /casper/initrd
}
menuentry "Ubuntu Studio (safe graphics)" {
 set gfxpayload=keep
 linux /casper/vmlinuz nomodeset --- quiet splash
 initrd /casper/initrd
}

debian-cd uses hard-coded values when building grub.cfg for the ISO.

https://git.launchpad.net/~ubuntu-cdimage/debian-cd/+git/ubuntu/tree/tools/boot/questing/common.sh?id=69635ea048f8d62e701babdfbb306c12107fab2d#n1

https://git.launchpad.net/~ubuntu-cdimage/debian-cd/+git/ubuntu/tree/tools/boot/questing/boot-amd64?id=69635ea048f8d62e701babdfbb306c12107fab2d#n129

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lowlatency-kernel - 1.3~24.04.1

---------------
lowlatency-kernel (1.3~24.04.1) noble; urgency=medium

  * Backport 1.3 from plucky
    - Skip update-grub if in a chroot (LP: #2119012)

 -- Juerg Haefliger <email address hidden> Tue, 29 Jul 2025 17:33:19 +0200

Changed in lowlatency-kernel (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 24.04.92

---------------
livecd-rootfs (24.04.92) noble; urgency=medium

  * Temporarily revert the 24.04.90 changes. We wish to validate only
    24.04.91 for Ubuntu 24.04.3 point release.

livecd-rootfs (24.04.91) noble; urgency=medium

  * Fix lowlatency kernel flavour name (LP: #2119012)

livecd-rootfs (24.04.90) noble; urgency=medium

  [ Chad Smith ]
  * Override cloud-init.service in /etc so as to not invalidate debsums
    (LP: #2069391)
  * Update the overridden copy of cloud-init.service

 -- Dan Bungert <email address hidden> Thu, 31 Jul 2025 11:27:41 -0600

Changed in livecd-rootfs (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Juerg, or anyone else affected,

Accepted lowlatency-kernel into plucky-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lowlatency-kernel/1.3~25.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-plucky to verification-done-plucky. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-plucky. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in lowlatency-kernel (Ubuntu Plucky):
status: Confirmed → Fix Committed
tags: added: verification-needed-plucky
Revision history for this message
Juerg Haefliger (juergh) wrote :

I cannot test this with an ubuntustudio livefs, it doesn't seed the lowlatency-kernel package in Plucky. Instead, I created a Plucky chroot and manually installed the lowlatency-kernel package from release (to confirm the issue) and then from proposed to verify the fix.

1. Confirm the issue with lowlatency-kernel from plucky-release:

# sudo debootstrap plucky plucky
# sudo chroot plucky
# apt-get download lowlatency-kernel
Get:1 http://archive.ubuntu.com/ubuntu plucky/main amd64 lowlatency-kernel amd64 1.2 [1928 B]
Fetched 1928 B in 0s (4680 B/s)

# dpkg --force-all -i lowlatency-kernel_1.2_amd64.deb
Selecting previously unselected package lowlatency-kernel.
(Reading database ... 12785 files and directories currently installed.)
Preparing to unpack lowlatency-kernel_1.2_amd64.deb ...
Unpacking lowlatency-kernel (1.2) ...
dpkg: lowlatency-kernel: dependency problems, but configuring anyway as you requested:
 lowlatency-kernel depends on kernel-supports-lowlatency-bootargs; however:
  Package kernel-supports-lowlatency-bootargs is not installed.

Setting up lowlatency-kernel (1.2) ...

Configuration file '/etc/default/grub.d/99-lowlatency.cfg', does not exist on system.
Installing new config file as you requested.
/var/lib/dpkg/info/lowlatency-kernel.postinst: line 13: update-grub: command not found
dpkg: error processing package lowlatency-kernel (--install):
 installed lowlatency-kernel package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 lowlatency-kernel

2. Verify the lowlatency-kernel from plucky-proposed

# Uninstall broken lowlatency-kernel
# Add plucky-proposed to apt sources.list
# apt-get download lowlatency-kernel/plucky-proposed
Get:1 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 lowlatency-kernel amd64 1.3~25.04.1 [2122 B]
Fetched 2122 B in 0s (17.3 kB/s)

# dpkg --force-all -i lowlatency-kernel_1.3~25.04.1_amd64.deb
Selecting previously unselected package lowlatency-kernel.
(Reading database ... 12859 files and directories currently installed.)
Preparing to unpack lowlatency-kernel_1.3~25.04.1_amd64.deb ...
Unpacking lowlatency-kernel (1.3~25.04.1) ...
dpkg: lowlatency-kernel: dependency problems, but configuring anyway as you requested:
 lowlatency-kernel depends on kernel-supports-lowlatency-bootargs; however:
  Package kernel-supports-lowlatency-bootargs is not installed.

Setting up lowlatency-kernel (1.3~25.04.1) ...

Configuration file '/etc/default/grub.d/99-lowlatency.cfg', does not exist on system.
Installing new config file as you requested.

tags: added: verification-done-plucky
removed: verification-needed-plucky
tags: added: verification-done-noble
removed: verification-needed-noble
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lowlatency-kernel - 1.3~25.04.1

---------------
lowlatency-kernel (1.3~25.04.1) plucky; urgency=medium

  * Backport 1.3 from questing
    - Skip update-grub if in a chroot (LP: #2119012)

 -- Juerg Haefliger <email address hidden> Tue, 29 Jul 2025 17:33:19 +0200

Changed in lowlatency-kernel (Ubuntu Plucky):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for lowlatency-kernel has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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