Skip to content

Commit

Permalink
Merge pull request #5292 from AdamWill/sleep-on-mediacheck-fail
Browse files Browse the repository at this point in the history
anaconda-diskroot: wait before dying on media check fail
  • Loading branch information
VladimirSlavik committed Dec 6, 2023
2 parents 3be30b6 + 3c5ce5a commit ec717fb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dracut/anaconda-diskroot
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ run_checkisomd5() {
state="inactive"
fi
if [ "$rc" = "1" ]; then
die "CD check failed!"
warn "Media check failed! We do not recommend using this medium. System will halt in 12 hours"
sleep 43200
die "Media check failed!"
exit 1
fi
if [ "$state" = "failed" ]; then
die "CD check failed!"
warn "Media check failed! We do not recommend using this medium. System will halt in 12 hours"
sleep 43200
die "Media check failed!"
exit 1
fi
[ -x /bin/plymouth ] && /bin/plymouth --show-splash
Expand Down

0 comments on commit ec717fb

Please sign in to comment.