action #127160
closedtransactional-update: hooks
100%
Description
Originally the idea was to implement hook script support in transactional-update in order to be able to call systemd-boot resp kernel-install scripts, just like snapper does https://github.com/openSUSE/transactional-update/issues/85
After some discussion, will try to implement the code in the set-default-snapshot hook of snapper instead. That means no special support for transactional-update needed.
Updated by lnussel over 1 year ago
- Assignee set to lnussel
- Priority changed from Normal to Urgent
Updated by lnussel over 1 year ago
- Assignee changed from lnussel to fos
- Priority changed from Urgent to High
Updated snapper plugin to handle the call in set-default-snapshot-post:
https://build.opensuse.org/package/rdiff/devel:microos:systemd-boot/kernel-install-openSUSE?linkrev=base&rev=15
Now transactional-update still needs to call snapper instead of btrfs subvolume set-default
Updated by lnussel over 1 year ago
filed https://github.com/openSUSE/snapper/issues/803 to request call in snapper
Updated by lnussel about 1 year ago
- % Done changed from 30 to 40
Arvin implemented the suggested commands
Updated by fos about 1 year ago
- Assignee changed from fos to lnussel
- % Done changed from 40 to 70
Implemented in https://github.com/openSUSE/transactional-update/commit/c03f1bbce70869cf98263faf3f2bd73a51e3e84d and https://github.com/openSUSE/transactional-update/commit/0194e3b06248ee0d6d37ff34a6abe85f131f4a84 and available with transactional-update 4.2.1 (https://build.opensuse.org/request/show/1085717).
For rollbacks snapper rollback
is used now, setting the default snapshot and read/write mode is triggered with snapper modify
(if available, otherwise the old btrfs command is still used).
Updated by lnussel about 1 year ago
- Status changed from New to Resolved
- % Done changed from 70 to 100