mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 11:21:12 +00:00
UbuntuStudio image builds have recently begun failing as a result of adding a grub theme customization to their flavor, which they then try to apply by running update-grub from their maintainer scripts. This fails with: Setting up plymouth-theme-ubuntustudio (0.57) ... update-alternatives: using /usr/share/plymouth/themes/ubuntustudio-logo/ubuntustudio-logo.plymouth to provide /usr/share/plymouth/themes/default.plymouth (default.plymouth) in auto mode update-alternatives: using /usr/share/plymouth/themes/ubuntustudio-text/ubuntustudio-text.plymouth to provide /usr/share/plymouth/themes/text.plymouth (text.plymouth) in auto mode update-initramfs: diverted by livecd-rootfs (will be called later) /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?). dpkg: error processing package plymouth-theme-ubuntustudio (--configure): installed plymouth-theme-ubuntustudio package post-installation script subprocess returned error exit status 1 Packages providing grub themes should be able to call update-grub from their maintainer scripts, and they should be able to be installed under livecd-rootfs. It's surprising to me that this hasn't been a problem before now for any flavors. We know that grub-probe should not be called as part of an image build, so just use our standard helper function to divert it before running the chroot stage and undivert it after.
Description
Languages
Shell
86.9%
Python
11%
Perl
2.1%