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,10 +251,17 @@ func (a *app) Wait() (int, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if a.shim.Unwrap() == nil {
|
||||||
|
fmsg.VPrintln("fault before shim start")
|
||||||
|
} else {
|
||||||
a.shim.AbortWait(errors.New("shim exited"))
|
a.shim.AbortWait(errors.New("shim exited"))
|
||||||
|
}
|
||||||
|
|
||||||
|
if a.seal.sys.needRevert {
|
||||||
if err := a.seal.sys.Revert(ec); err != nil {
|
if err := a.seal.sys.Revert(ec); err != nil {
|
||||||
return err.(RevertCompoundError)
|
return err.(RevertCompoundError)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue