diff options
| author | Brian C. Lane <bcl@redhat.com> | 2013-02-20 17:01:28 -0800 |
|---|---|---|
| committer | Brian C. Lane <bcl@redhat.com> | 2013-02-26 09:11:53 -0800 |
| commit | d42bd03f491955bb124f9fc87a4effce62abbdb5 (patch) | |
| tree | d397527d347a1392423bd8713efc40fcc9feb012 /dracut | |
| parent | 7bbef9e1291fe9d17254980d280a7123711af51b (diff) | |
| download | anaconda-d42bd03f491955bb124f9fc87a4effce62abbdb5.tar.gz anaconda-d42bd03f491955bb124f9fc87a4effce62abbdb5.tar.xz anaconda-d42bd03f491955bb124f9fc87a4effce62abbdb5.zip | |
Continue booting when checkisomd5 is aborted (#891551)
Diffstat (limited to 'dracut')
| -rwxr-xr-x | dracut/anaconda-diskroot | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dracut/anaconda-diskroot b/dracut/anaconda-diskroot index 21c8afec2..2df624801 100755 --- a/dracut/anaconda-diskroot +++ b/dracut/anaconda-diskroot @@ -15,10 +15,13 @@ run_checkisomd5() { if [ -n "$DRACUT_SYSTEMD" ]; then p=$(str_replace "$livedev" "-" '\x2d') systemctl start checkisomd5@${p}.service + status=$(systemctl -p ExecMainStatus show checkisomd5@${p}.service) + splitsep "=" "$status" ignore rc else checkisomd5 --verbose $livedev + rc=$? fi - if [ $? -ne 0 ]; then + if [ "$rc" == "1" ]; then die "CD check failed!" exit 1 fi |
