remove the incomplete .img file
@ -1690,6 +1690,7 @@ if ! (
| $compress >> "$outfile"
); then
dfatal "dracut: creation of $outfile failed"
rm -f $outfile
exit 1
fi
dinfo "*** Creating initrd image file '$outfile' done ***"