Skip to content

Commit

Permalink
Print information about the entry set as default by grubby-bls script
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
martinezjavier committed Oct 8, 2018
1 parent fdb5c76 commit eed6ef6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions grubby-bls
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ print_error() {
exit 1
}

print_info() {
echo "$1" >&2
}

if [[ ${#} = 0 ]]; then
print_error "no action specified"
fi
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit eed6ef6

Please sign in to comment.