summaryrefslogtreecommitdiffstats
path: root/dracut/anaconda-diskroot
diff options
context:
space:
mode:
Diffstat (limited to 'dracut/anaconda-diskroot')
-rwxr-xr-xdracut/anaconda-diskroot5
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