spec: correctly remove tuned footprint from /etc/default/grub
The bootloader plugin adds there GRUB_CMDLINE_LINUX_DEFAULT tuned setting which should be removed upon Tuned uninstallation. This commit fixes the regex used in %postun to correctly remove the Tuned footprint from there. Resolves: rhbz#1268845 Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
5a5986bd8b
commit
1f1d7e3235
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ if [ "$1" == 0 ]; then
|
|||
rm -f %{_sysconfdir}/grub.d/00_tuned || :
|
||||
# unpatch /etc/default/grub
|
||||
if [ -r "%{_sysconfdir}/default/grub" ]; then
|
||||
sed -i '/GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT \\$tuned_params"/d' %{_sysconfdir}/default/grub
|
||||
sed -i '/GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_DEFAULT:+$GRUB_CMDLINE_LINUX_DEFAULT }\\$tuned_params"/d' %{_sysconfdir}/default/grub
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue