From d3566a2f7eb4a8550487b1f5e3b37465ed686ca0 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Tue, 30 Apr 2024 15:57:26 +0200 Subject: [PATCH] fix(dracut.spec): do not check if fillup template exists at %post end If the test returns false, the %post script also exits with error and the rpm build fails. Fixes ae26ad5d5931c663dde5577d6a511f8bd5504ff5 --- suse/dracut.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suse/dracut.spec b/suse/dracut.spec index 94767c8ee4..36ffff6088 100644 --- a/suse/dracut.spec +++ b/suse/dracut.spec @@ -223,7 +223,7 @@ if [ -L /var/run ] && [ -f /etc/dracut.conf.d/05-convertfs.conf ]; then fi # remove obsolete legacy fillup template for /etc/sysconfig/kernel -[ -f /var/adm/fillup-templates/sysconfig.kernel-mkinitrd ] && rm -f /var/adm/fillup-templates/sysconfig.kernel-mkinitrd +rm -f /var/adm/fillup-templates/sysconfig.kernel-mkinitrd %{?regenerate_initrd_post}