Skip to content

Commit

Permalink
fix(dracut.sh): handle out of space error for UEFI builds
Browse files Browse the repository at this point in the history
If `cp` fails, do not continue, print an error and exit, like it's already
being done for non-UEFI builds.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Feb 13, 2023
1 parent 726d56c commit 8602df7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2505,6 +2505,10 @@ if [[ $uefi == yes ]]; then
else
if cp --reflink=auto "${uefi_outdir}/linux.efi" "$outfile"; then
dinfo "*** Creating UEFI image file '$outfile' done ***"
else
rm -f -- "$outfile"
dfatal "Creation of $outfile failed"
exit 1
fi
fi
else
Expand Down

0 comments on commit 8602df7

Please sign in to comment.