From 74cfd2de83c1d7003ecf998ed126580975b66600 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Tue, 30 Apr 2024 08:33:15 +0200 Subject: [PATCH] fix(dracut.spec): handle error in %post If the system is read-only, the %post script fails and exits with error. Issue detected on the IBS after the build of ae26ad5d5931c663dde5577d6a511f8bd5504ff5 failed. Fixes f6bfaa30a628638a8d6274da120ca5c944fb23de --- suse/dracut.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suse/dracut.spec b/suse/dracut.spec index 764518c50a..e321536bec 100644 --- a/suse/dracut.spec +++ b/suse/dracut.spec @@ -206,7 +206,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 +[ -f /var/adm/fillup-templates/sysconfig.kernel-mkinitrd ] && rm -f /var/adm/fillup-templates/sysconfig.kernel-mkinitrd || : %{?regenerate_initrd_post}