From 7c4698761cb1e0e4f8773f6be56b4dc3ff40d3c2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 25 Nov 2024 14:17:49 -0500 Subject: [PATCH] build: Add install-ostree-hooks This an optional bit for those that need `ostree container`. Signed-off-by: Colin Walters --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 1a7fd64b3..41a6454c6 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,14 @@ install: done install -D -m 0644 -t $(DESTDIR)/$(prefix)/lib/systemd/system systemd/*.service systemd/*.timer +# Run this to also take over the functionality of `ostree container` for example. +# Only needed for OS/distros that have callers invoking `ostree container` and not bootc. +install-ostree-hooks: + install -d $(DESTDIR)$(prefix)/libexec/libostree/ext + for x in ostree-container ostree-ima-sign ostree-provisional-repair; do \ + ln -sf ../../../bin/bootc $(DESTDIR)$(prefix)/libexec/libostree/ext/$$x; \ + done + install-with-tests: install install -D -m 0755 target/release/tests-integration $(DESTDIR)$(prefix)/bin/bootc-integration-tests