Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #86321

Bug#1099461: initramfs-tools: _call_dracut_install breaks set -e hooks without /sys

From Chris Hofstaedtler <zeha@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1099461: initramfs-tools: _call_dracut_install breaks set -e hooks without /sys
Date 2025-03-03 20:40 +0100
Message-ID <KmjNT-3nuh-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Source: initramfs-tools
Version: 0.146
X-Debbugs-CC: team@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

Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1099461: initramfs-tools: _call_dracut_install breaks set -e hooks without /sys Chris Hofstaedtler <zeha@debian.org> - 2025-03-03 20:40 +0100
  Processed: initramfs-tools: _call_dracut_install breaks set -e  hooks without /sys "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-03-03 20:40 +0100
  Bug#1099461: initramfs-tools: _call_dracut_install breaks set -e hooks without /sys Chris Hofstaedtler <zeha@debian.org> - 2025-03-04 13:20 +0100
  Bug#1099461: marked as done (initramfs-tools: _call_dracut_install  breaks set -e hooks without /sys) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-04-24 17:50 +0200

csiph-web