File tree Expand file tree Collapse file tree 6 files changed +59
-1
lines changed Expand file tree Collapse file tree 6 files changed +59
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ install:
24
24
install -D -m 0644 -t $(DESTDIR )$(prefix ) /share/man/man8 $$ d/* .8; \
25
25
fi ; \
26
26
done
27
- install -D -m 0644 -t $(DESTDIR ) /$(prefix ) /lib/systemd/system systemd/* .service systemd/* .timer
27
+ install -D -m 0644 -t $(DESTDIR ) /$(prefix ) /lib/systemd/system systemd/* .service systemd/* .timer systemd/ * .path systemd/ * .target
28
28
29
29
# Run this to also take over the functionality of `ostree container` for example.
30
30
# Only needed for OS/distros that have callers invoking `ostree container` and not bootc.
Original file line number Diff line number Diff line change 28
28
- [ ` man bootc-rollback ` ] ( man/bootc-rollback.md )
29
29
- [ ` man bootc-usr-overlay ` ] ( man/bootc-usr-overlay.md )
30
30
- [ ` man bootc-fetch-apply-updates.service ` ] ( man-md/bootc-fetch-apply-updates.service.md )
31
+ - [ ` man bootc-status-updated.path ` ] ( man-md/bootc-status-updated.path.md )
32
+ - [ ` man bootc-status-updated.target ` ] ( man-md/bootc-status-updated.target.md )
31
33
- [ Controlling bootc via API] ( bootc-via-api.md )
32
34
33
35
# Using ` bootc install `
Original file line number Diff line number Diff line change
1
+ % bootc-status-updated.path(8)
2
+
3
+ # NAME
4
+
5
+ bootc-status-updated.path
6
+
7
+ # DESCRIPTION
8
+
9
+ This unit watches the ` bootc ` root directory (/ostree/bootc) for
10
+ modification, and triggers the companion ` bootc-status-updated.target `
11
+ systemd unit.
12
+
13
+ The ` bootc ` program updates the mtime on its root directory when the
14
+ contents of ` bootc status ` changes as a result of an
15
+ update/upgrade/edit/switch/rollback operation.
16
+
17
+ # SEE ALSO
18
+
19
+ ** bootc** (1), ** bootc-status-updated.target** (8)
Original file line number Diff line number Diff line change
1
+ % bootc-status-updated.target(8)
2
+
3
+ # NAME
4
+
5
+ bootc-status-updated.target
6
+
7
+ # DESCRIPTION
8
+
9
+ This unit is triggered by the companion ` bootc-status-updated.path `
10
+ systemd unit. This target is intended to enable users to add custom
11
+ services to trigger as a result of ` bootc status ` changing.
12
+
13
+ Add the following to your unit configuration to active it when `bootc
14
+ status` changes:
15
+
16
+ ```
17
+ [Install]
18
+ WantedBy=bootc-status-updated.target
19
+ ```
20
+
21
+ # SEE ALSO
22
+
23
+ ** bootc** (1), ** bootc-status-updated.path** (8)
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description=Monitor bootc for status changes
3
+ Documentation=man:bootc-status-updated.path(8)
4
+
5
+ [Path]
6
+ PathChanged=/ostree/bootc
7
+ Unit=bootc-status-updated.target
8
+
9
+ [Install]
10
+ WantedBy=multi-user.target
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description=Target for bootc status changes
3
+ Documentation=man:bootc-status-updated.target(8)
4
+ StopWhenUnneeded=true
You can’t perform that action at this time.
0 commit comments