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:
2525 fi ; \
2626 done
2727 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
2830 install -D -m 0644 -t $(DESTDIR ) /$(prefix ) /share/doc/bootc/baseimage/base/usr/lib/ostree/ baseimage/base/usr/lib/ostree/prepare-root.conf
2931 install -d -m 755 $(DESTDIR ) /$(prefix ) /share/doc/bootc/baseimage/base/sysroot
3032 cp -PfT baseimage/base/ostree $(DESTDIR ) /$(prefix ) /share/doc/bootc/baseimage/base/ostree
Original file line number Diff line number Diff line change 11[Unit]
22Description=Monitor bootc for status changes
33Documentation=man:bootc-status-updated.path(8)
4+ ConditionPathExists=/run/ostree-booted
45
56[Path]
67PathChanged=/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