Skip to content

Commit

Permalink
systemd: Add bootc-publish-rhsm-facts.service
Browse files Browse the repository at this point in the history
When enabled, this triggers on bootc-status-updated.target to update
the facts file for Red Hat Subscription Manager integration via
`bootc internals publish-rhsm-facts`

Signed-off-by: John Eckersberg <[email protected]>
  • Loading branch information
jeckersb committed Dec 18, 2024
1 parent d7e34fa commit 1bf188b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions systemd/bootc-publish-rhsm-facts.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Publish bootc facts to Red Hat Subscription Manager
Documentation=man:bootc(8)
ConditionPathExists=/etc/rhsm/facts

[Service]
Type=oneshot
ExecStart=/usr/bin/bootc internals publish-rhsm-facts

[Install]
WantedBy=bootc-status-updated.target

0 comments on commit 1bf188b

Please sign in to comment.