File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ install:
25
25
fi ; \
26
26
done
27
27
install -D -m 0644 -t $(DESTDIR ) /$(prefix ) /lib/systemd/system systemd/* .service systemd/* .timer systemd/* .path systemd/* .target
28
+ install -d -m 0755 $(DESTDIR ) /$(prefix ) /lib/systemd/system/multi-user.target.wants
29
+ ln -s ../bootc-status-updated.path $(DESTDIR ) /$(prefix ) /lib/systemd/system/multi-user.target.wants/bootc-status-updated.path
28
30
install -D -m 0644 -t $(DESTDIR ) /$(prefix ) /share/doc/bootc/baseimage/base/usr/lib/ostree/ baseimage/base/usr/lib/ostree/prepare-root.conf
29
31
install -d -m 755 $(DESTDIR ) /$(prefix ) /share/doc/bootc/baseimage/base/sysroot
30
32
cp -PfT baseimage/base/ostree $(DESTDIR ) /$(prefix ) /share/doc/bootc/baseimage/base/ostree
Original file line number Diff line number Diff line change 1
1
[Unit]
2
2
Description=Monitor bootc for status changes
3
3
Documentation=man:bootc-status-updated.path(8)
4
+ ConditionPathExists=/run/ostree-booted
4
5
5
6
[Path]
6
7
PathChanged=/ostree/bootc
Original file line number Diff line number Diff line change
1
+ # Verify our systemd units are enabled
2
+ use std assert
3
+ use tap .nu
4
+
5
+ tap begin " verify our systemd units"
6
+
7
+ let units = [
8
+ [" unit" , " status" ];
9
+ # This one should be always enabled by our install logic
10
+ [" bootc-status-updated.path" , " active" ]
11
+ ]
12
+
13
+ for elt in $units {
14
+ let found_status = systemctl show - P ActiveState $elt.unit | str trim
15
+ assert equal $elt.status $found_status
16
+ }
17
+
18
+ tap ok
You can’t perform that action at this time.
0 commit comments