Skip to content

Commit

Permalink
docs/triggers: Update paths for tx triggers
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <ikey@serpentos.com>
  • Loading branch information
ikeycode committed Feb 3, 2024
1 parent 81f05d1 commit e57c48d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/packaging/triggers/tx_triggers.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ blitted to disk, and just before the new `/usr` tree is activated. These trigger
container and have read-write access to the new `/usr` tree, but only have read-only access to the `/etc`
directory.

Currently transaction triggers must be installed in `/usr/share/moss/triggers/pre.d` with a `.yaml` suffix.
In a future update to moss this path will be changed to `/usr/share/moss/triggers/tx.d`
Transaction triggers must be installed in `/usr/share/moss/triggers/tx.d` with a `.yaml` suffix.

## Sample trigger

Expand All @@ -36,4 +35,10 @@ paths:
handlers:
- depmod
type: directory
```

To install this trigger in your recipe:

```shell
%install_file %(pkgdir)/trigger.yaml %(installroot)/usr/share/moss/triggers/tx.d/gdk_pixbuf.yaml
```

0 comments on commit e57c48d

Please sign in to comment.