From 2cd85a32d29e8753ede5bbeec84d1f8b3190b99f Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Mon, 2 Dec 2019 14:31:08 +0100 Subject: [PATCH] - remove 00-zipl-prepare.install plugin that is not needed anymore The kernel-install plugin removed the "${BOOT_DIR_ABS%/*}" directory that was created unconditionally by the kernel-install script. Since the other plugins used the existence of this directory as the indication on whether systemd-boot was used or not. But now the kernel-install script doesn't unconditionally create this dir anymore and if $BOOT/$MACHINE_ID exists, so there's no need anymore to do any cleanup. --- 00-zipl-prepare.install | 9 --------- s390utils.spec | 3 --- 2 files changed, 12 deletions(-) delete mode 100755 00-zipl-prepare.install diff --git a/00-zipl-prepare.install b/00-zipl-prepare.install deleted file mode 100755 index 315b2f9..0000000 --- a/00-zipl-prepare.install +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -COMMAND="$1" -KERNEL_VERSION="$2" -BOOT_DIR_ABS="$3" -KERNEL_IMAGE="$4" - -# Remove it, since for zipl the images are always installed in /boot -rm -rf "${BOOT_DIR_ABS%/*}" diff --git a/s390utils.spec b/s390utils.spec index 366e84a..ddb00fa 100644 --- a/s390utils.spec +++ b/s390utils.spec @@ -27,7 +27,6 @@ Source15: device_cio_free.service Source16: ccw_init Source17: ccw.udev Source21: normalize_dasd_arg -Source22: 00-zipl-prepare.install Source23: 20-zipl-kernel.install Source24: 52-zipl-rescue.install Source25: 91-zipl.install @@ -120,7 +119,6 @@ install -Dp -m 644 etc/modules-load.d/*.conf %{buildroot}%{_prefix}/lib/modules- # Install kernel-install scripts install -d -m 0755 %{buildroot}%{_prefix}/lib/kernel/install.d/ -install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE22} install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ zfcpdump/10-zfcpdump.install install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE23} install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE24} @@ -473,7 +471,6 @@ systemctl --no-reload preset device_cio_free.service >/dev/null 2>&1 || : %{_udevrulesdir}/81-ccw.rules %{_udevrulesdir}/90-cpi.rules %{_sysconfdir}/kernel/install.d/20-grubby.install -%{_prefix}/lib/kernel/install.d/00-zipl-prepare.install %{_prefix}/lib/kernel/install.d/10-zfcpdump.install %{_prefix}/lib/kernel/install.d/20-zipl-kernel.install %{_prefix}/lib/kernel/install.d/52-zipl-rescue.install