Project

General

Profile

Actions

action #127160

closed

transactional-update: hooks

Added by lnussel about 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
2023-04-04
Due date:
2023-04-10
% Done:

100%

Estimated time:

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.

Actions #1

Updated by lnussel about 1 year ago

  • Assignee set to lnussel
  • Priority changed from Normal to Urgent
Actions #2

Updated by lnussel about 1 year ago

  • Due date set to 2023-04-10
Actions #3

Updated by lnussel about 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

Actions #4

Updated by lnussel about 1 year ago

  • % Done changed from 0 to 30
Actions #5

Updated by lnussel about 1 year ago

filed https://github.com/openSUSE/snapper/issues/803 to request call in snapper

Actions #6

Updated by lnussel about 1 year ago

  • % Done changed from 30 to 40

Arvin implemented the suggested commands

https://github.com/openSUSE/transactional-update/pull/105

Actions #7

Updated by fos 12 months 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).

Actions #8

Updated by lnussel 12 months ago

  • Status changed from New to Resolved
  • % Done changed from 70 to 100
Actions

Also available in: Atom PDF