Go to file
Javier Martinez Canillas 6abeb6fc77
grubby-bls: make --update-kernel ALL to update kernelopts var in grubenv
Currently there's no way to update the kernelopts variable defined in the
grubenv by using the grubby wrapper. Updating it with grub2-editenv - set
is tedious and error prone so let's use --update-kernel=ALL option for it.

This command currently iterates over all the BLS entries and update them
individually, but makes more sense to update the kernelopts grubenv var
and only update the BLS entries that don't have the $kernelopts var in
their options field.

If after an update one of these BLS entries have exactly the same params
in their options field than the ones set in $kernelopts, set the options
field to $kernelopts again since the parameters have converged again.

That way the modified BLS entries will only have a custom options field
while its value diverged from the $kernelopts defined in grubenv.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
2019-03-01 16:31:28 +01:00
.gitignore Provide the correct installkenrel and grubby-bls packaging for blscfg 2018-10-23 14:29:29 +02:00
0001-remove-the-old-crufty-u-boot-support.patch Rename patches 2018-10-23 15:21:35 +02:00
0002-Change-return-type-in-getRootSpecifier.patch Rename patches 2018-10-23 15:21:35 +02:00
0003-Add-btrfs-subvolume-support-for-grub2.patch Rename patches 2018-10-23 15:21:35 +02:00
0004-Add-tests-for-btrfs-support.patch Rename patches 2018-10-23 15:21:35 +02:00
0005-Use-system-LDFLAGS.patch Rename patches 2018-10-23 15:21:35 +02:00
0006-Honor-sbindir.patch Rename patches 2018-10-23 15:21:35 +02:00
0007-Make-installkernel-to-use-kernel-install-scripts-on-.patch Rename patches 2018-10-23 15:21:35 +02:00
0008-Add-usr-libexec-rpm-sort.patch Make grubby-bls sort everything correctly, including spaces. 2018-10-23 15:49:19 +02:00
0009-Improve-man-page-for-info-option.patch Another set of mostly grubby-bls fixes 2018-12-01 02:34:07 +01:00
0010-Fix-GCC-warnings-about-possible-string-truncations-a.patch Fix build errors with GCC9 and two more grubby-bls fixes 2019-02-05 20:09:52 +01:00
grubby-bls grubby-bls: make --update-kernel ALL to update kernelopts var in grubenv 2019-03-01 16:31:28 +01:00
grubby.in Make the old grubby take precedence over grubby-bls if is installed 2018-12-01 02:12:08 +01:00
grubby.spec grubby-bls: make --update-kernel ALL to update kernelopts var in grubenv 2019-03-01 16:31:28 +01:00
installkernel-bls installkernel-bls: remove unnecessary check for GRUB_ENABLE_BLSCFG=true 2018-11-21 10:43:48 +01:00
installkernel.in Make installkernel to use kernel-install scripts on BLS configuration 2018-08-11 21:33:16 +02:00
sources Cleanup deps for new grub2 packaging. 2017-09-12 09:21:37 -04:00