summaryrefslogtreecommitdiff
path: root/src/kernel-install/90-loaderentry.install
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@dowhile0.org>2018-02-28 10:25:19 +0100
committerLennart Poettering <lennart@poettering.net>2018-02-28 10:25:19 +0100
commit81818461c655a5c3adec4f3bc221aa986d9c65b6 (patch)
tree09b0c3bb2a64e9e5b01ce79dde5955f0f68e54f0 /src/kernel-install/90-loaderentry.install
parentba7f4ae6178309dc937e10cf7dce0eca9dafb8de (diff)
downloadsystemd-81818461c655a5c3adec4f3bc221aa986d9c65b6.tar.gz
kernel-install: Don't install BLS kernel images if dest dir doesn't exist (#8306)
The script shouldn't rely on a previous script exiting with a status code that prevents it to be executed. Instead, should check if the destination directory for the BLS kernel image exists and exit otherwise.
Diffstat (limited to 'src/kernel-install/90-loaderentry.install')
-rw-r--r--src/kernel-install/90-loaderentry.install4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel-install/90-loaderentry.install b/src/kernel-install/90-loaderentry.install
index 305ea8f5c9..a271cdb8a0 100644
--- a/src/kernel-install/90-loaderentry.install
+++ b/src/kernel-install/90-loaderentry.install
@@ -11,6 +11,10 @@ if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then
exit 0
fi
+if ! [[ -d "$BOOT_DIR_ABS" ]]; then
+ exit 0
+fi
+
MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID
BOOT_DIR="/$MACHINE_ID/$KERNEL_VERSION"