rpm-ostree icon indicating copy to clipboard operation
rpm-ostree copied to clipboard

RFE: Record and redo pending transactions after forced reboot

Open cheese opened this issue 2 years ago • 2 comments

After a forced reboot, e.g. reboot -f or a power failure, the pending deploy and all the transactions are lost. For example:

# rpm-ostree install somepackage
# rpm-ostree kargs --append-if-missing=abc=abcd
# rpm-ostree kargs --delete=efg
# rpm-ostree upgrade
# reboot -f

I hope rpm-ostree can record the pending transactions somewhere under /var and provide a sub-command like rpm-ostree redo to re-apply them after a forced reboot.

cheese avatar Jul 06 '22 10:07 cheese

We do have rpm-ostree ex history today; it could make sense to do this there. (And promote history to stable someday...)

cgwalters avatar Jul 29 '22 14:07 cgwalters

It would be nice there is a service to redo the pending transactions at some early boot stage and reboot automatically. Then end-user won't aware the difference between forced and normal reboots.

cheese avatar Aug 01 '22 16:08 cheese