Skip to content

Commit 2e8142b

Browse files
committed
build: Add install-ostree-hooks
This an optional bit for those that need `ostree container`. Signed-off-by: Colin Walters <[email protected]>
1 parent 8dbe273 commit 2e8142b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ install:
2626
done
2727
install -D -m 0644 -t $(DESTDIR)/$(prefix)/lib/systemd/system systemd/*.service systemd/*.timer
2828

29+
# Run this to also take over the functionality of `ostree container` for example.
30+
# Only needed for OS/distros that have callers invoking `ostree container` and not bootc.
31+
install-ostree-hooks:
32+
install -d $(DESTDIR)$(prefix)/libexec/libostree/ext
33+
for x in ostree-container ostree-ima-sign ostree-provisional-repair; do \
34+
ln -sf ../../../bin/bootc $(DESTDIR)$(prefix)/libexec/libostree/ext/$$x; \
35+
done
36+
2937
install-with-tests: install
3038
install -D -m 0755 target/release/tests-integration $(DESTDIR)$(prefix)/bin/bootc-integration-tests
3139

0 commit comments

Comments
 (0)