diff --git a/dracut/anaconda-error-reporting.sh b/dracut/anaconda-error-reporting.sh index c9cca5cea2e..b410cd667e5 100755 --- a/dracut/anaconda-error-reporting.sh +++ b/dracut/anaconda-error-reporting.sh @@ -14,9 +14,13 @@ warn "Please also note that the 'inst.' prefix is now mandatory." warn "# #" warn "#### Installer errors encountered during boot: ####" warn "# #" -while read -r line; do - warn "$line" -done < /run/anaconda/initrd_errors.txt +if ! [ -e /run/anaconda/initrd_errors.txt ]; then + warn "Reason unknown" +else + while read -r line; do + warn "$line" + done < /run/anaconda/initrd_errors.txt +fi warn "# #" warn "############# Anaconda installer errors end ###############"