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 ae26ad5
  • Loading branch information
aafeijoo-suse committed Apr 30, 2024
1 parent ae26ad5 commit 5bb0735
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 @@ -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
[ -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 5bb0735

Please sign in to comment.