From d1dd184403aff92db19c2114cba30746134b8925 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Sat, 1 Dec 2018 01:57:07 +0100 Subject: [PATCH] grubby-bls: also print the absolute path in the --default-kernel option The absolute path to the kernel and initramfs images is printed by the --info option, but it's not printed by the --default-kernel option. Resolves: rhbz#1649778 Signed-off-by: Javier Martinez Canillas --- grubby-bls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/grubby-bls b/grubby-bls index 7b8bae7..e0614bd 100755 --- a/grubby-bls +++ b/grubby-bls @@ -151,9 +151,11 @@ get_default_index() { } display_default_value() { + local prefix=$(get_prefix) + case "$display_default" in kernel) - echo "${bls_linux[$default_index]}" + echo "${prefix}${bls_linux[$default_index]}" exit 0 ;; index)