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 <javierm@redhat.com>
This commit is contained in:
Javier Martinez Canillas 2018-12-01 01:57:07 +01:00
parent e777519e08
commit d1dd184403
No known key found for this signature in database
GPG Key ID: C751E590D63F3D69

View File

@ -151,9 +151,11 @@ get_default_index() {
} }
display_default_value() { display_default_value() {
local prefix=$(get_prefix)
case "$display_default" in case "$display_default" in
kernel) kernel)
echo "${bls_linux[$default_index]}" echo "${prefix}${bls_linux[$default_index]}"
exit 0 exit 0
;; ;;
index) index)