We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3991fbf + 0a8267f commit ad49715Copy full SHA for ad49715
build_library/extract-initramfs-from-vmlinuz.sh
@@ -81,11 +81,9 @@ perform_round() {
81
for rnd in "${round_prefix}"*; do
82
if [[ $(file --brief "${rnd}") =~ 'cpio archive' ]]; then
83
mkdir -p "${out}/rootfs-${ROOTFS_IDX}"
84
- while cpio --quiet --extract --make-directories --directory="${out}/rootfs-${ROOTFS_IDX}" --nonmatching 'dev/*'; do
85
- ROOTFS_IDX=$(( ROOTFS_IDX + 1 ))
86
- mkdir -p "${out}/rootfs-${ROOTFS_IDX}"
87
- done <${rnd}
88
- rmdir "${out}/rootfs-${ROOTFS_IDX}"
+ # On Linux 6.10, the first rootfs is an extra ghost rootfs of 336K, that has a corrupted CPIO
+ cpio --quiet --extract --make-directories --directory="${out}/rootfs-${ROOTFS_IDX}" --nonmatching 'dev/*' < $rnd || true
+ ROOTFS_IDX=$(( ROOTFS_IDX + 1 ))
89
fi
90
done
91
}
0 commit comments