File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,9 @@ perform_round() {
8181 for rnd in " ${round_prefix} " * ; do
8282 if [[ $( file --brief " ${rnd} " ) =~ ' cpio archive' ]]; then
8383 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} "
84+ # On Linux 6.10, the first rootfs is an extra ghost rootfs of 336K, that has a corrupted CPIO
85+ cpio --quiet --extract --make-directories --directory=" ${out} /rootfs-${ROOTFS_IDX} " --nonmatching ' dev/*' < $rnd || true
86+ ROOTFS_IDX=$(( ROOTFS_IDX + 1 ))
8987 fi
9088 done
9189}
You can’t perform that action at this time.
0 commit comments