Skip to content
Snippets Groups Projects
Verified Commit d0583f7d authored by nl6720's avatar nl6720
Browse files

Merge remote-tracking branch 'origin/merge-requests/359'

By Markus Weippert
* origin/merge-requests/359:
  lsinitcpio: extract early cpio to list modules

See merge request archlinux/mkinitcpio/mkinitcpio!359
parents 411acfed 2300bb31
No related branches found
No related tags found
No related merge requests found
Pipeline #96332 passed
......@@ -202,6 +202,9 @@ analyze_image() {
# decompress the image since we need to read from it multiple times.
install -dm755 "$workdir/initcpio"
if (( offset > 0 )); then
bsdtar -C "$workdir/initcpio" -xf "$image" || die 'Failed to decompress early cpio'
fi
decomp "$image" "$offset" | bsdtar -C "$workdir/initcpio" -xf - || die 'Failed to decompress image'
modules=("$workdir/initcpio/usr/lib/modules"/*/kernel/**/*.ko*)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment