Commit Graph

7 Commits

Author SHA1 Message Date
Marta Lewandowska
dda97ca5d7 Only let grubby manipulate machine-id entries
On various clouds, systems may be built from snapshots from different
machines. The result is BLS entries from the old system that do not
correspond to anything on the new system. When grubby is used to sort
or update or set a particular entry as the default, it may set too
high an index for the entry, which then fails to boot.

Use the machine-id to only list and manipulate entries that correspond
to the machine.
2026-07-03 15:30:34 +02:00
Marta Lewandowska
693ac2964d Don't overwrite vars that start with GRUB_CMDLINE_LINUX
When updating args for ALL kernels, grubby clobbers all variables
in /etc/default/grub that start with GRUB_CMDLINE_LINUX and renders
that line multiple times, for each variable that exists. This breaks
using recovery mode. Fix so this doesn't happen anymore.

Resolves: #RHEL-12853
Signed-off-by: Marta Lewandowska <mlewando@redhat.com>
Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
2024-01-11 10:11:21 +01:00
Marta Lewandowska
1c226c8702 Fix passing --args without copy-default
Fix so that --args are not passed by default if copy-default is not used.
Set root when --args are passed without copy-default.

Resolves: #1900829
Signed-off-by: Marta Lewandowska <mlewando@redhat.com>
Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
2023-06-13 14:31:42 +02:00
CentOS Sources
46ae913894 Auto sync2gitlab import of grubby-8.40-47.el8.src.rpm 2022-10-15 04:17:06 +00:00
CentOS Sources
e0512723fc Auto sync2gitlab import of grubby-8.40-45.el8.src.rpm 2022-08-17 10:14:29 +00:00
CentOS Sources
ff8d8187fb Auto sync2gitlab import of grubby-8.40-44.el8.src.rpm 2022-08-12 22:10:20 +00:00
James Antill
fdfc38981d Auto sync2gitlab import of grubby-8.40-42.el8.src.rpm 2022-05-26 09:14:37 -04:00