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() {
81
81
for rnd in " ${round_prefix} " * ; do
82
82
if [[ $( file --brief " ${rnd} " ) =~ ' cpio archive' ]]; then
83
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} "
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 ))
89
87
fi
90
88
done
91
89
}
You can’t perform that action at this time.
0 commit comments