diff --git a/20-zipl-kernel.install b/20-zipl-kernel.install index 794d4cd..33b7d11 100755 --- a/20-zipl-kernel.install +++ b/20-zipl-kernel.install @@ -1,5 +1,9 @@ #!/bin/bash +if ! [[ $KERNEL_INSTALL_MACHINE_ID ]]; then + exit 0 +fi + [[ -f /etc/sysconfig/kernel ]] && . /etc/sysconfig/kernel COMMAND="$1" @@ -11,9 +15,6 @@ KERNEL_DIR="${KERNEL_IMAGE%/*}" MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID -# Remove it, since for zipl the images are always installed in /boot -rm -rf "${BOOT_DIR_ABS%/*}" - BLS_DIR="/boot/loader/entries" CMDLINE_LINUX_DEBUG=" systemd.log_level=debug systemd.log_target=kmsg" LINUX_DEBUG_VERSION_POSTFIX="_with_debugging"