From 33ab171b289002c472b4461c03f8fe33bb0d7779 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Fri, 5 Oct 2018 14:31:13 +0200 Subject: [PATCH] Print information about the entry set as default by grubby-bls script This information can be useful for users to know what's the BLS entry that was set as the default. Resolves: rhbz#1636180 Signed-off-by: Javier Martinez Canillas --- grubby-bls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/grubby-bls b/grubby-bls index c992e2e..28da698 100755 --- a/grubby-bls +++ b/grubby-bls @@ -48,6 +48,10 @@ print_error() { exit 1 } +print_info() { + echo "$1" >&2 +} + if [[ ${#} = 0 ]]; then print_error "no action specified" fi @@ -380,6 +384,8 @@ set_default_bls() { echo "default=${default}" >> "${zipl_config}" fi fi + + print_info "The default is ${bls_file[$index]} with index $index and kernel ${bls_linux[$index]}" } remove_var_prefix() {