Skip to content

Commit

Permalink
src/libpriv: Add kernel-install-integration
Browse files Browse the repository at this point in the history
This is part of the kernel-install integration work done in:
https://gitlab.com/fedora/bootc/base-images/-/merge_requests/62
#5135
containers/bootc#1018
  • Loading branch information
jmarrero committed Jan 11, 2025
1 parent b363506 commit 223f3df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile-rpm-ostree.am
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ 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 -D -m 0755 -t $(DESTDIR)/usr/lib/kernel/install.d $(srcdir)/src/libpriv/05-rpmostree.install
INSTALL_EXEC_HOOKS += install-rpmostree-hook

# Wraps `cargo test`. This is always a debug non-release build;
Expand Down
1 change: 1 addition & 0 deletions packaging/rpm-ostree.spec
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ $PYTHON autofiles.py > files \
'%{_datadir}/dbus-1/system.d/*' \
'%{_sysconfdir}/rpm-ostreed.conf' \
'%{_prefix}/lib/systemd/system/*' \
'%{_prefix}/lib/kernel/install.d/*' \
'%{_libexecdir}/rpm-ostree*' \
%if %{with ostree_ext}
'%{_libexecdir}/libostree/ext/*' \
Expand Down
3 changes: 3 additions & 0 deletions src/libpriv/05-rpmostree.install
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 223f3df

Please sign in to comment.