Skip to content

Commit

Permalink
fix(dracut.spec): do not check if fillup template exists at %post end
Browse files Browse the repository at this point in the history
If the test returns false, the %post script also exits with error and the rpm
build fails.

Fixes f6bfaa3
  • Loading branch information
aafeijoo-suse committed Apr 30, 2024
1 parent 19b7c06 commit b470283
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
rm -f /var/adm/fillup-templates/sysconfig.kernel-mkinitrd

%{?regenerate_initrd_post}

Expand Down

0 comments on commit b470283

Please sign in to comment.