4a74218 Store cmdline in BLS snippets instead of using a grubenv variable

Authored and Committed by javierm 3 years ago
    Store cmdline in BLS snippets instead of using a grubenv variable
    
    The kernel cmdline was stored as a kernelopts variable in the grubenv file
    and the BLS snippets used that. But this turned out to be fragile since the
    grubenv file could be removed or get corrupted easily.
    
    To prevent the entries to not have a cmdline if the grubenv can't be read,
    a fallback variable was set in the GRUB config file. But this still caused
    issues since the config needs to be re-generated to change the parameters.
    
    Instead, let's store the cmdline in the BLS snippets. This will make the
    configuration more robust, since it will work even without the grubenv
    file and the BLS entries will contain all the information needed to boot.
    
    Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
    
        
file modified
+23 -15
file modified
+1 -0
file modified
+4 -1