From dcbd66f78c5cac048814546f221ed649e8aa7d9a Mon Sep 17 00:00:00 2001 From: Joseph Marrero Corchado Date: Thu, 9 Jan 2025 20:52:15 -0500 Subject: [PATCH] src/libpriv: Add kernel-install-integration This is part of the kernel-install integration work done in: https://gitlab.com/fedora/bootc/base-images/-/merge_requests/62 https://github.com/coreos/rpm-ostree/pull/5135 https://github.com/containers/bootc/pull/1018 --- src/libpriv/kernel-install-integration.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 src/libpriv/kernel-install-integration.sh diff --git a/src/libpriv/kernel-install-integration.sh b/src/libpriv/kernel-install-integration.sh new file mode 100755 index 0000000000..9e5ae1a73f --- /dev/null +++ b/src/libpriv/kernel-install-integration.sh @@ -0,0 +1,8 @@ +#!/usr/bin/bash +cat > /usr/lib/kernel/install.d/05-rpmostree.install << 'EOF' +#!/bin/bash +# This is the hook that has kernel-install call into rpm-ostree kernel-install +exec /usr/bin/rpm-ostree kernel-install "$@" +EOF +chmod +x /usr/lib/kernel/install.d/05-rpmostree.install +