cleanup: Don't use internal rpm macros

This commit is contained in:
Mikhail Efremov 2019-10-16 17:05:30 +03:00 committed by Alexey Shabalin
parent 0a21bd5c85
commit 29fcd0b3a9

View File

@ -230,7 +230,7 @@ find %buildroot -name \*.in -delete
%post bootloader
[ "$1" -eq 1 ] || exit 0
%ifarch %ix86 x86_64
%__ln_s -nf %theme/message /boot/splash/message
ln -snf %theme/message /boot/splash/message
. /etc/sysconfig/i18n
lang=$(echo $LANG | cut -d. -f 1)
cd boot/splash/%theme/
@ -247,7 +247,7 @@ shell_config_set /etc/sysconfig/grub2 GRUB_COLOR_HIGHLIGHT %grub_high
%preun bootloader
[ "$1" -eq 1 ] || exit 0
[ "`readlink /boot/splash/message`" != "%theme/message" ] ||
%__rm -f /boot/splash/message
%rm -f /boot/splash/message
%endif
%post indexhtml