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


Groups > linux.debian.kernel > #86320 > unrolled thread

Bug#1099456: initramfs-tools: misleading error messages

Started byChris Hofstaedtler <zeha@debian.org>
First post2025-03-03 20:10 +0100
Last post2025-07-09 15:00 +0200
Articles 4 — 4 participants

Back to article view | Back to linux.debian.kernel


Contents

  Bug#1099456: initramfs-tools: misleading error messages Chris Hofstaedtler <zeha@debian.org> - 2025-03-03 20:10 +0100
    Bug#1099456: initramfs-tools: misleading error messages Benjamin Drung <bdrung@debian.org> - 2025-06-27 13:50 +0200
    Processed: Re: initramfs-tools: misleading error messages "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-07-09 15:00 +0200
    Bug#1099456: initramfs-tools: misleading error messages Ben Hutchings <ben@decadent.org.uk> - 2025-07-09 15:00 +0200

#86320 — Bug#1099456: initramfs-tools: misleading error messages

FromChris Hofstaedtler <zeha@debian.org>
Date2025-03-03 20:10 +0100
SubjectBug#1099456: initramfs-tools: misleading error messages
Message-ID<KmjkR-3niJ-5@gated-at.bofh.it>
Package: initramfs-tools
Version: 0.145
X-Debbugs-CC: team@grml.org

Dear initramfs-tools Maintainers,

while investigating Grml Live build (*) failures, I came across these 
error messages:

Setting up linux-image-6.12.17-arm64 (6.12.17-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.12.17-arm64
I: /initrd.img.old is now a symlink to boot/initrd.img-6.12.17-arm64
I: /vmlinuz is now a symlink to boot/vmlinuz-6.12.17-arm64
I: /initrd.img is now a symlink to boot/initrd.img-6.12.17-arm64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.12.17-arm64
/usr/sbin/mkinitramfs: 122: cannot open /sys/module/firmware_class/parameters/path: No such file
/usr/sbin/mkinitramfs: 122: cannot open /sys/module/firmware_class/parameters/path: No such file
/usr/share/initramfs-tools/hooks/live: 122: cannot open /sys/module/firmware_class/parameters/path: No such file
/usr/share/initramfs-tools/hooks/cryptroot: 615: cannot open /proc/mounts: No such file
cryptsetup: WARNING: Couldn't determine root device
sed: can't read /proc/cmdline: No such file or directory
grep: /proc/swaps: No such file or directory
/usr/share/initramfs-tools/hooks/cryptroot: 615: cannot open /proc/mounts: No such file
grep: /proc/cpuinfo: No such file or directory

Especially the lines marked "mkinitramfs: 122" seem to make no 
sense, as /usr/sbin/mkinitramfs line 122 does not seem to deal with 
/sys/module/firmware_class/parameters/path at all.

It would be nice if this could be improved.

Chris


(*) these builds run containerized and thus do not have /sys or 
/proc. This configuration may be unusual, but works fine in 
practice, or least did until initramfs-tools 0.146.
It has the advantage of not leaking system state from the build host 
into a live image (and others).

[toc] | [next] | [standalone]


#88172

FromBenjamin Drung <bdrung@debian.org>
Date2025-06-27 13:50 +0200
Message-ID<L2fKF-dxhk-3@gated-at.bofh.it>
In reply to#86320
On Mon, 3 Mar 2025 19:58:06 +0100 Chris Hofstaedtler <zeha@debian.org>
wrote:
> Package: initramfs-tools
> Version: 0.145
> X-Debbugs-CC: team@grml.org
> 
> Dear initramfs-tools Maintainers,
> 
> while investigating Grml Live build (*) failures, I came across these 
> error messages:
> 
> Setting up linux-image-6.12.17-arm64 (6.12.17-1) ...
> I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.12.17-arm64
> I: /initrd.img.old is now a symlink to boot/initrd.img-6.12.17-arm64
> I: /vmlinuz is now a symlink to boot/vmlinuz-6.12.17-arm64
> I: /initrd.img is now a symlink to boot/initrd.img-6.12.17-arm64
> /etc/kernel/postinst.d/initramfs-tools:
> update-initramfs: Generating /boot/initrd.img-6.12.17-arm64
> /usr/sbin/mkinitramfs: 122: cannot open
/sys/module/firmware_class/parameters/path: No such file
> /usr/sbin/mkinitramfs: 122: cannot open
/sys/module/firmware_class/parameters/path: No such file
> /usr/share/initramfs-tools/hooks/live: 122: cannot open
/sys/module/firmware_class/parameters/path: No such file
> /usr/share/initramfs-tools/hooks/cryptroot: 615: cannot open
/proc/mounts: No such file
> cryptsetup: WARNING: Couldn't determine root device
> sed: can't read /proc/cmdline: No such file or directory
> grep: /proc/swaps: No such file or directory
> /usr/share/initramfs-tools/hooks/cryptroot: 615: cannot open
/proc/mounts: No such file
> grep: /proc/cpuinfo: No such file or directory
> 
> Especially the lines marked "mkinitramfs: 122" seem to make no 
> sense, as /usr/sbin/mkinitramfs line 122 does not seem to deal with 
> /sys/module/firmware_class/parameters/path at all.
> 
> It would be nice if this could be improved.

This error message and line number comes from the shell. The issue here
is that the error comes from a file that was sourced. So the line number
122 refers to the sourced file. Searching the source code points to
/usr/share/initramfs-tools/hook-functions. 

The cryptroot:615 comes from get_mnt_devno() from
/lib/cryptsetup/functions.

So this bug should probably re-assigned to dash/bash/etc.

-- 
Benjamin Drung
Debian & Ubuntu Developer

[toc] | [prev] | [next] | [standalone]


#88285 — Processed: Re: initramfs-tools: misleading error messages

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-07-09 15:00 +0200
SubjectProcessed: Re: initramfs-tools: misleading error messages
Message-ID<L6CyZ-gmuR-7@gated-at.bofh.it>
In reply to#86320
Processing control commands:

> tag -1 wontfix
Bug #1099456 [initramfs-tools] initramfs-tools: misleading error messages
Added tag(s) wontfix.

-- 
1099456: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1099456
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [next] | [standalone]


#88286

FromBen Hutchings <ben@decadent.org.uk>
Date2025-07-09 15:00 +0200
Message-ID<L6CyZ-gmuR-1@gated-at.bofh.it>
In reply to#86320

[Multipart message — attachments visible in raw view] — view raw

Control: tag -1 wontfix

On Mon, 3 Mar 2025 19:58:06 +0100 Chris Hofstaedtler <zeha@debian.org>
wrote:
[...]
> (*) these builds run containerized and thus do not have /sys or 
> /proc. This configuration may be unusual, but works fine in 
> practice, or least did until initramfs-tools 0.146.
> It has the advantage of not leaking system state from the build host 
> into a live image (and others).

initramfs-tools is not (currently) designed for that, sorry.

Ben.

-- 
Ben Hutchings
73.46% of all statistics are made up.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web