Public bug reported:
The installation will error out and the following is available in syslog
Removing the bootcd package before installation prevents any issues from
happening
/usr/share/initramfs-tools/hooks/bootcdinitramfshook: 61: [: diverted:
unexpected operator
/usr/share/initramfs-tools/hooks/bootcdinitramfshook: 61: [: diverted:
unexpected operator
E: /usr/share/initramfs-tools/hooks/bootcdinitramfshook failed with return 1.
update-initramfs: failed for /boot/initrd.img-6.12.42 with 1.
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned
error exit status 1
Errors were encountered while processing:
initramfs-tools
It appears to stem from this line in bootcdinitamfshook
for i in libdiscover2 discover-data discover;
do
(
dpkg-query --listfiles $i 2>/dev/null |
grep -v "^/usr/share/doc" | # no docu
grep -v "^/usr/share/man" | # no manpages
grep -v "^/lib/" |
grep -v "^/usr/lib/" |
grep -v "^/bin/" | # goes to exe if needed
grep -v "^/usr/bin/" | # goes to exe if needed
grep -v "^/sbin/" | # goes to exe if needed
grep -v "^/usr/sbin/" # goes to exe if needed
dpkg-query --listfiles $i 2>/dev/null |
grep "/lib/discover/" # we need discover xml data
) |
while read f; do
[ -d $f ] && continue # no dirs
echo "$f"
done
done
}
As running that on my systems results in:
/etc/discover.conf.d/00discover
/usr/share/discover/dtd/conffile.dtd
/usr/share/discover/dtd/discover.dtd
diverted by base-files to: /lib.usr-is-merged
/usr/share/bug/discover-data
/usr/share/tools/discover-updater.pl
/usr/share/tools/lst2xml
/usr/share/tools/merge-lst-to-xml
/usr/share/tools/mkshorthwlist
/usr/share/tools/reduce-xml
/usr/share/tools/trim26lst
/usr/share/tools/xml2lst
/lib/discover/ata-busclass.xml
/lib/discover/ata-device.xml
/lib/discover/ata-vendor.xml
/lib/discover/list.xml
/lib/discover/pci-busclass.xml
/lib/discover/pci-device-deb.xml
/lib/discover/pci-device.xml
/lib/discover/pci-vendor.xml
/lib/discover/pcmcia-busclass.xml
/lib/discover/pcmcia-device.xml
/lib/discover/pcmcia-vendor.xml
/lib/discover/scsi-busclass.xml
/lib/discover/scsi-device.xml
/lib/discover/scsi-vendor.xml
/lib/discover/usb-busclass.xml
/lib/discover/usb-device.xml
/lib/discover/usb-vendor.xml
/etc/discover-modprobe.conf
diverted by base-files to: /sbin.usr-is-merged
/usr/share/discover/init-discover
/usr/share/lintian/overrides/discover
And the for loop trips up on the outputs that have "diverted by", which
I believe ar ebeing diverted to the /usr merge
This is on
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
UBUNTU_CODENAME=noble
** Affects: bootcd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2129309
Title:
ISO with bootcd added will fail to generate initramfs during
installation
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bootcd/+bug/2129309/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs