From 81818461c655a5c3adec4f3bc221aa986d9c65b6 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Wed, 28 Feb 2018 10:25:19 +0100 Subject: [PATCH] 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. --- src/kernel-install/90-loaderentry.install | 4 ++++ 1 file changed, 4 insertions(+) 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"