Skip to content

Commit

Permalink
fix(dracut.spec): handle error in %post
Browse files Browse the repository at this point in the history
If the system is read-only, the %post script fails and exits with error.

Issue detected on the IBS after the build of ae26ad5 failed.

Fixes f6bfaa3
  • Loading branch information
aafeijoo-suse committed Apr 30, 2024
1 parent 19b7c06 commit 74cfd2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suse/dracut.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit 74cfd2d

Please sign in to comment.