Skip to content

Commit 349f9c4

Browse files
committed
bootc-publish-rhsm-facts: Add ConditionPathExists=/run/ostree-booted
Right now this service fails in `bcvk run-ephemeral`, but also likely fails in any non-bootc system that has `subscription-manager` installed.
1 parent 8fe9633 commit 349f9c4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

systemd/bootc-publish-rhsm-facts.service

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Description=Publish bootc facts to Red Hat Subscription Manager
33
Documentation=man:bootc(8)
44
ConditionPathExists=/etc/rhsm/facts
5+
# TODO: Also consider something like this for composefs...
6+
# or alternatively, add a bootc service that's like
7+
# ostree-boot-complete.service that we run unconditionally on
8+
# boot which triggers these things.
9+
ConditionPathExists=/run/ostree-booted
510

611
[Service]
712
Type=oneshot

0 commit comments

Comments
 (0)