Source: initramfs-tools
Version: 0.146
X-Debbugs-CC: t...@grml.org
Control: affects -1 live-boot

Dear initramfs-tools maintainers,

daily builds of Grml started failing today. I've debugged it a bit, and it seems to boil down to this combination:

1) our builds run in a containerized environment, and thus have no /sys or /proc. This is /good/ for building Live images, as leaking anything from the build host would be wrong anyway.

2) live-boot hook.live does "set -e" right at the start:
https://sources.debian.org/src/live-boot/1%3A20250225/backend/initramfs-tools/live.hook/#L3

3) hook-functions _call_dracut_install reads from 
/sys/module/firmware_class/parameters/path
without checking if the file exists (or otherwise allowing for set -e), and this causes the entire process to abort.

Happens here:
https://sources.debian.org/src/initramfs-tools/0.146/hook-functions/?hl=106#L122

In add_firmware there's a similar code path, I assume that will also be a problem:

https://sources.debian.org/src/initramfs-tools/0.146/hook-functions/?hl=106#L65

I understand that this combination might be somewhat surprising, but it is very valuable for building live "CD" images. And so far it worked really well.

Please consider short-circuiting the read from 
/sys/module/firmware_class/parameters/path
somehow, and please for trixie.

Best,
Chris

Reply via email to