diff --git a/grubby-bls b/grubby-bls index 2549880..c1ea4cf 100755 --- a/grubby-bls +++ b/grubby-bls @@ -706,6 +706,10 @@ while [ ${#} -gt 0 ]; do shift done +if [[ -z $update_kernel ]] && [[ -n $args || -n $remove_args ]]; then + print_error "no action specified" +fi + if [[ -z $blsdir ]]; then blsdir="/boot/loader/entries" fi diff --git a/grubby.spec b/grubby.spec index 52ab427..5606b2c 100644 --- a/grubby.spec +++ b/grubby.spec @@ -1,6 +1,6 @@ Name: grubby Version: 8.40 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Command line tool for updating bootloader configs License: GPLv2+ URL: https://github.com/rhinstaller/grubby @@ -132,6 +132,9 @@ current boot environment. %{_mandir}/man8/*.8* %changelog +* Thu Feb 14 2019 Javier Martinez Canillas - 8.40-27 +- grubby-bls: error if args or remove-args is used without update-kernel + * Tue Feb 05 2019 Javier Martinez Canillas - 8.40-26 - Fix GCC warnings about possible string truncations and buffer overflows - grubby-bls: unset default entry if is the one being removed