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 <javierm@redhat.com>
This commit is contained in:
Javier Martinez Canillas 2018-10-05 14:31:13 +02:00
parent 28952a66c8
commit 33ab171b28
No known key found for this signature in database
GPG Key ID: C751E590D63F3D69
1 changed files with 6 additions and 0 deletions

View File

@ -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() {