[Bug 2095518] [NEW] dracut-install does not install compressed wildcard blobs
Launchpad Bug Tracker
2095518 at bugs.launchpad.net
Wed Jan 22 17:29:03 UTC 2025
You have been subscribed to a public bug by You-Sheng Yang (vicamo):
[Describe the bug]
Take kernel module intel-ish-ipc for example, it has two firmware
declarations:
```
$ modinfo intel-ish-ipc | grep ^firmware
firmware: intel/ish/ish_*.bin
firmware: intel/ish/ish_lnlm.bin
```
And with additional custom ISH firmware installed from [bug
2094768](https://bugs.launchpad.net/bugs/2094768), update-initramefs
gives:
```
$ update-initramefs -v -u -k $(uname -r)
...
dracut-install: Missing firmware intel/ish/ish_*.bin for kernel module intel_ish_ipc
dracut-install: mkdir '/var/tmp/mkinitramfs_9uk7FI/lib/firmware/intel/ish'
dracut-install: cp '/lib/firmware/intel/ish/ish_lnlm_39ceeaf8_58.7724.2.bin.zst' '/var/tmp/mkinitramfs_9uk7FI/lib/firmware/intel/ish/ish_lnlm_39ceeaf8_58.7724.2.bin.zst'
dracut-install: ln -s 'ish_lnlm_39ceeaf8_58.7724.2.bin.zst' '/var/tmp/mkinitramfs_9uk7FI/lib/firmware/intel/ish/ish_lnlm.bin.zst'
...
```
In source code for `/usr/lib/dracut/dracut-install`, that is, source
package dracut, file `src/install/dracut-install.c`, function
`install_firmware`, it tries to invoke `glob()` with full path expanded
from "intel/ish/ish_*.bin", but while all the binaries were compressed,
this matches no file and none of the custom ISH firmware blobs will be
installed.
[Distribution used]
Ubuntu
[Dracut version]
This was first found in Ubuntu/Noble, which has 060, but from the git
history and the differences, this should be reproducible with all
versions of dracut.
[Init system]
Systemd.
[To Reproduce]
1. touch `/lib/firmware/intel/ish/ish_foo.bin.zst`
2. `update-initramefs -v -u -k $(uname -r)`, and check if above file was added.
[Expected behavior]
Any file under `/lib/firmware/intel/ish` matches `intel/ish/ish_*.bin`,
compressed (.zst, .xz) or uncompressed (.bin), should be added into the
newly created initramefs.
[Additional context]
Upstream bug: https://github.com/dracut-ng/dracut-ng/issues/1150
** Affects: dracut (Ubuntu)
Importance: Undecided
Status: New
** Affects: dracut (Ubuntu Jammy)
Importance: Undecided
Status: New
** Affects: dracut (Ubuntu Noble)
Importance: Undecided
Status: New
** Affects: dracut (Ubuntu Oracular)
Importance: Undecided
Status: New
** Affects: dracut (Ubuntu Plucky)
Importance: Undecided
Status: New
--
dracut-install does not install compressed wildcard blobs
https://bugs.launchpad.net/bugs/2095518
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list