app/start: check for cleanup and abort condition
test / test (push) Successful in 21s
Details
test / test (push) Successful in 21s
Details
Dirty fix. Will rewrite after fsu integration complete. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
parent
b5f01ef20b
commit
c1fad649e8
|
@ -251,9 +251,16 @@ func (a *app) Wait() (int, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a.shim.AbortWait(errors.New("shim exited"))
|
if a.shim.Unwrap() == nil {
|
||||||
if err := a.seal.sys.Revert(ec); err != nil {
|
fmsg.VPrintln("fault before shim start")
|
||||||
return err.(RevertCompoundError)
|
} else {
|
||||||
|
a.shim.AbortWait(errors.New("shim exited"))
|
||||||
|
}
|
||||||
|
|
||||||
|
if a.seal.sys.needRevert {
|
||||||
|
if err := a.seal.sys.Revert(ec); err != nil {
|
||||||
|
return err.(RevertCompoundError)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue