When manipulating grubby entries with machine-id, if using an image
with improper BLS entry starting with ffffffff, grubby ends up not
touching anything, so fix by falling back to old behavior if nothing
matches machine-id.
Signed-off-by: Marta Lewandowska <mlewando@redhat.com>
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>
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>