Skip to content

Commit

Permalink
src/libpriv: Add kernel-install-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrero committed Jan 10, 2025
1 parent b363506 commit 2d57d19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile-rpm-ostree.am
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ install-rpmostree-hook:
ln -Tsr -f $(DESTDIR)$(bindir)/rpm-ostree $(ostreeextdir)/ostree-ima-sign
ln -Tsr -f $(DESTDIR)$(bindir)/rpm-ostree $(ostreeextdir)/ostree-provisional-repair
ln -Tsr -f $(DESTDIR)$(bindir)/rpm-ostree $(ostreeextdir)/ostree-container
# Install kernel-install integration script
cp $(srcdir)/src/libpriv/kernel-install-integration.sh $(DESTDIR)/lib/kernel/install.d/
INSTALL_EXEC_HOOKS += install-rpmostree-hook

# Wraps `cargo test`. This is always a debug non-release build;
Expand Down
3 changes: 3 additions & 0 deletions src/libpriv/kernel-install-integration.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/bash
# This is the hook that has kernel-install call into rpm-ostree kernel-install
exec /usr/bin/rpm-ostree kernel-install "$@"

0 comments on commit 2d57d19

Please sign in to comment.