Repository navigation
fix(extractinitrd): create leading directories when extracting a selection - #2754
Merged
Merged
Conversation
bdrung
reviewed
Sep 11, 2026
aafeijoo-suse
force-pushed
the
extractinitrd-make-dirs-fix
branch
2 times, most recently
from
September 11, 2026 11:01
ff55336 to
32fd838
Compare
3 tasks done
Member
|
Could you add a test case to TEST-83-EXTRACTINITRD to cover this case? |
…ction cpio without the `-d/--make-directories` option does not create leading directories where needed (see cpio(1)). Extracting a selection of files fails if the archive entry for a parent directory is not part of that. E.g.: ``` $ sudo dracutbasedir=. ./lsinitrd.sh --unpack /boot/initrd etc/cmdline.d/* cpio: etc/cmdline.d/00-btrfs.conf: Cannot open: No such file or directory cpio: etc/cmdline.d/90crypt.conf: Cannot open: No such file or directory cpio: etc/cmdline.d/95resume.conf: Cannot open: No such file or directory cpio: etc/cmdline.d/95root-dev.conf: Cannot open: No such file or directory dracut-extractinitrd: cpio failed ``` Used Claude to create a test case. Co-developed-by: Claude Opus 5.5 <noreply@anthropic.com>
aafeijoo-suse
force-pushed
the
extractinitrd-make-dirs-fix
branch
from
November 5, 2026 08:29
32fd838 to
1f430ea
Compare
bdrung
approved these changes
Nov 5, 2026
devkontrol
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cpio without the
-d/--make-directoriesoption does not create leading directories where needed (see cpio(1)). Extracting a selection of files fails if the archive entry for a parent directory is not part of that. E.g.:Checklist