Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #90949
| Path | csiph.com!weretis.net!feeder8.news.weretis.net!srl.newsdeef.eu!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Santiago Vila <sanvila@debian.org> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#1125948: dracut: fails to detect 3cpio |
| Date | Sat, 24 Jan 2026 17:40:01 +0100 |
| Message-ID | <MgOQ1-d1if-5@gated-at.bofh.it> (permalink) |
| References | <MeWeZ-bHrV-1@gated-at.bofh.it> <Mgwgp-cLt3-5@gated-at.bofh.it> <MeWeZ-bHrV-1@gated-at.bofh.it> <MgLS9-cZoF-9@gated-at.bofh.it> <MgMEx-cZWh-1@gated-at.bofh.it> <MeWeZ-bHrV-1@gated-at.bofh.it> <MgMEx-cZWh-1@gated-at.bofh.it> |
| X-Original-To | Benjamin Drung <bdrung@debian.org> |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Sat Jan 24 16:35:10 2026 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -1.699 |
| Reply-To | Santiago Vila <sanvila@debian.org>, 1125948@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | debian-kernel@lists.debian.org |
| X-Debian-Pr-Message | followup 1125948 |
| X-Debian-Pr-Package | dracut |
| X-Debian-Pr-Keywords | forky sid |
| X-Debian-Pr-Source | dracut |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Disposition | inline |
| X-Debian-User | sanvila |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1949538 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 88 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | 1125948@bugs.debian.org |
| X-Original-Date | Sat, 24 Jan 2026 17:33:48 +0100 |
| X-Original-Message-ID | <aXT0bGeVYcnthwVC@nuc> |
| X-Original-References | <f084ee04-7ce4-4ad0-a5ca-a02c79d93b4a@debian.org> <fc5849de91c633dda6ee44594437b99207e60794.camel@debian.org> <f084ee04-7ce4-4ad0-a5ca-a02c79d93b4a@debian.org> <aXTHjSSPE7K5C7SG@nuc> <8b70a97f9126cdea3e741f346481937ec4847c89.camel@debian.org> <f084ee04-7ce4-4ad0-a5ca-a02c79d93b4a@debian.org> <8b70a97f9126cdea3e741f346481937ec4847c89.camel@debian.org> |
| Xref | csiph.com linux.debian.bugs.dist:1279631 linux.debian.kernel:90949 |
Cross-posted to 2 groups.
Show key headers only | View raw
> > Can you tell if this parallel mode is the default, and if not, what
> > other reasons for a race condition can be?
>
> I am not aware of any "parallel mode" here. The postinst calls dracut
> just with >&2 to redirect stdout to stderr.
I refer to this:
if [[ $parallel != "yes" ]]; then
for i in *; do
[[ -f $i/modules.dep ]] || [[ -f $i/modules.dep.bin ]] || continue
"$dracut_cmd" --kver="$i" "${dracut_args[@]}"
_rc=$?
if [[ $_rc -gt 0 ]]; then
printf "%s\n" "dracut[F]: image generation failed for kernel '$i'." >&2
((ret += _rc))
fi
done
else
for i in *; do
[[ -f $i/modules.dep ]] || [[ -f $i/modules.dep.bin ]] || continue
--> "$dracut_cmd" --kver="$i" "${dracut_args[@]}" &
done
This "&" at the end is what draw my attention and made me to remember
the funny bug in "sumo" which I pointed out before.
> > I would be willing to build linux-signed-amd64 a lot of times using a
> > modified dracut package with whatever debug changes we could add to
> > see what's going on (even if they are simple "echo foo"), so I'm
> > open for suggestions about those potential changes.
>
> Thanks. Could you try to run a test with this patch applied to dracut:
> https://github.com/dracut-ng/dracut-ng/pull/2109/changes
>
> Plus add an "exit 1" after those 3 dinfo/dwarning calls to let dracut
> fail, because I expect dracut to take the happy path.
This first modified version fails a lot less, maybe because by adding those
additional lines we make the race condition to be less likely.
But I can't see any special thing in the logs (are they redirected somewhere?)
> Can you test with just[*] the stderr redirection to /dev/null removed?
This second modified version fails again quite often, but at least
we can see the error from 3cpio:
[...]
I: /vmlinuz is now a symlink to boot/vmlinuz-6.18.5+deb14-cloud-amd64
I: /initrd.img is now a symlink to boot/initrd.img-6.18.5+deb14-cloud-amd64
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-6.18.5+deb14-cloud-amd64
thread 'main' panicked at library/std/src/io/stdio.rs:1165:9:
failed printing to stdout: Broken pipe (os error 32)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
/usr/bin/dracut: line 2772: cpio: command not found
dracut[F]: Creation of /boot/initrd.img-6.18.5+deb14-cloud-amd64 failed
[...]
[*] Note that after cloning from salsa I still have to revert the
change made by Bastian so that it depends again on 3cpio|cpio. The
first time I forgot about such little detail and was suspiciously
surprised that it did not fail at all...
I believe the fact that 3cpio is written in Rust is related to this issue.
I'm going to try this instead and will let you know how it goes:
--- a/dracut.sh
+++ b/dracut.sh
@@ -1483,7 +1483,7 @@ elif [[ -n $persistent_policy && ! -d "/dev/disk/${persistent_policy}" ]]; then
fi
CPIO=cpio
-if 3cpio --help | grep -q -- --create; then
+if 3cpio --help 2> /dev/null | cat | grep -q -- --create; then
CPIO=3cpio
fi
You can try this for the equivalent simplified example:
if 3cpio --help | cat | true; then true; fi
Thanks.
Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bug#1125948: dracut: Missing dependency on cpio (?) Benjamin Drung <bdrung@debian.org> - 2026-01-23 21:50 +0100
Bug#1125948: dracut: fails to detect 3cpio Santiago Vila <sanvila@debian.org> - 2026-01-24 14:30 +0100
Bug#1125948: dracut: fails to detect 3cpio Benjamin Drung <bdrung@debian.org> - 2026-01-24 15:20 +0100
Bug#1125948: dracut: fails to detect 3cpio Santiago Vila <sanvila@debian.org> - 2026-01-24 17:40 +0100
Bug#1125948: dracut: fails to detect 3cpio Santiago Vila <sanvila@debian.org> - 2026-01-24 19:30 +0100
csiph-web