From 27cf1e739988359632c8f753718938e6ed473116 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Sat, 1 Dec 2018 02:09:53 +0100 Subject: [PATCH] Make the old grubby take precedence over grubby-bls if is installed Not all bootloaders used in Fedora have BLS support, for example extlinux doesn't. So when using extlinux the old grubby tool has to be installed. Currently the grubby-bls wrapper has precedence over the old grubby tool, which means that even if grubby-deprecated is installed, the wrapper will executed when calling grubby. Make the old grubby take precedence instead. Related: rhbz#1654841 Signed-off-by: Javier Martinez Canillas --- grubby.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/grubby.in b/grubby.in index f0036e9..023e595 100644 --- a/grubby.in +++ b/grubby.in @@ -1,8 +1,8 @@ #!/bin/bash -if [[ -x @@LIBEXECDIR@@/grubby-bls ]] ; then - exec @@LIBEXECDIR@@/grubby-bls "${@}" -elif [[ -x @@LIBEXECDIR@@/grubby ]] ; then +if [[ -x @@LIBEXECDIR@@/grubby ]] ; then exec @@LIBEXECDIR@@/grubby "${@}" +elif [[ -x @@LIBEXECDIR@@/grubby-bls ]] ; then + exec @@LIBEXECDIR@@/grubby-bls "${@}" fi echo "Grubby is not installed correctly." >>/dev/stderr exit 1