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:
parent
28952a66c8
commit
33ab171b28
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user