diff --git a/dracut.sh b/dracut.sh index 8ca319b6..2712e9e1 100755 --- a/dracut.sh +++ b/dracut.sh @@ -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 ***"