refactoring

This commit is contained in:
Patrick Schleizer 2023-01-07 15:22:25 -05:00
parent 83800fcb4f
commit 51a5f68c76
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -73,7 +73,13 @@ dmsetup_actual_output: '$dmsetup_actual_output'"
sleep 5
fi
kexec -e && info "wipe-ram.sh: kexec -e succeeded" || warn "wipe-ram.sh: kexec -e failed"
if kexec -e ; then
info "wipe-ram.sh: kexec -e succeeded"
return 0
fi
warn "wipe-ram.sh: kexec -e failed"
sleep 5
}
ram_wipe