diff options
author | Colin Walters <walters@verbum.org> | 2016-09-14 01:57:43 -0400 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-09-14 07:57:43 +0200 |
commit | 34210af7c63640fca1fd4a09fc23b01a8cd70bf3 (patch) | |
tree | 879c49d71d8dee0be495ad71295727c08c760838 /src | |
parent | 4ffe24797cc881f1dc95f39badf6facd8061117e (diff) |
kernel-install: Add KERNEL_INSTALL_NOOP (#4103)
Will be used by rpm-ostree (and likely lorax) to suppress
RPM->kernel->%posttrans->dracut runs, and basically everything
else this script is doing.
I'll also likely change the `kernel.spec` to respect this as well.
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel-install/kernel-install | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel-install/kernel-install b/src/kernel-install/kernel-install index c66bcfc092..f37c023c6a 100644 --- a/src/kernel-install/kernel-install +++ b/src/kernel-install/kernel-install @@ -61,6 +61,13 @@ for i in "$@"; do fi done +# KERNEL_INSTALL_NOOP may be used by programs like lorax and rpm-ostree which +# want to install a kernel (indirectly via RPM), but control generation of the +# initramfs. In general, OSTree takes over kernel management too. +if test -n "${KERNEL_INSTALL_NOOP:-}"; then + exit 0 +fi + if [[ "${0##*/}" == 'installkernel' ]]; then COMMAND='add' else |