12e62c4 grubby-bls: don't replace options with kernelopts if values are the same

Authored and Committed by javierm 3 years ago
    grubby-bls: don't replace options with kernelopts if values are the same
    
    If the options field in a BLS file has the same value than the kernelopts
    variable in grubenv, the options is replaced with the kernelopts variable.
    
    This was done to keep the options in the BLS files in sync when possible,
    but having the kernel cmdline as a variable in the grubenv file was proven
    to be fragile. Instead, the kernel cmdline will be stored in the BLS files
    to make the configuration more robust. This will work even if the grubenv
    gets corrupted or is deleted.
    
    Since we want to get rid of the kernelopts variable, don't attempt to use
    that in the BLS snippets anymore.
    
    Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
    
        
file modified
+0 -4
file modified
+4 -1