FS#57482 - [pacman] better handling of transaction hook failures
Attached to Project:
Pacman
Opened by Norbert Pfeiler (npfeiler) - Monday, 12 February 2018, 14:56 GMT
Last edited by Allan McRae (Allan) - Monday, 12 February 2018, 21:05 GMT
Opened by Norbert Pfeiler (npfeiler) - Monday, 12 February 2018, 14:56 GMT
Last edited by Allan McRae (Allan) - Monday, 12 February 2018, 21:05 GMT
|
Details
If a pre-transaction hook fails pacman just continues as if
it was successful.
Failed post-transaction hooks are also ignored (which is a pretty big problem if i.e. the initrams couldn’t be regenerated). They should imho be marked for rerun during the next pacman execution or something like that. In both cases pacman should indicate at the end that the transaction didn’t complete without problems or abort/reverse it. |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 12 February 2018, 21:05 GMT
Reason for closing: None
Additional comments about closing: AbortOnFail + reading.
Monday, 12 February 2018, 21:05 GMT
Reason for closing: None
Additional comments about closing: AbortOnFail + reading.
"pacman should indicate at the end that the transaction didn’t complete" -- It does? pacman hooks run at the end, and indicate when they don't complete successfully.
"or abort/reverse it" -- pacman does not atomically update the system, so it cannot atomically roll back an update. That would require filesystem-level handling, and you can essentially get this by using the [community]/snap-pac package, so I don't think this is something pacman's core needs to do...