Bug 1975888

Summary: RFE: grub.cfg should not write boot_success/boot_indeterminate when boot_counter and menu_auto_hide are not set
Product: [Fedora] Fedora Reporter: Piergiorgio Sartor <piergiorgio.sartor>
Component: grub2Assignee: Javier Martinez Canillas <fmartine>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: fmartine, hdegoede, lkundrak, pgnet.dev, pjones, rharwood
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-19 19:22:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Piergiorgio Sartor 2021-06-24 16:20:23 UTC
Description of problem:
There are use cases where is not wished to update the file /boot/grub2/grubenv with the boot successful information.
Specifically, when the "boot_counter" and "menu_auto_hide" variable are not set there should be no reasons for updating /boot/grub2/grubenv.
There could be situations where /boot resides on fragile storage, like SD cards, and the user might want to minimize writes.

Version-Release number of selected component (if applicable):
2.06-2

How reproducible:
Always

Steps to Reproduce:
1.
Remove the variables above mentioned
2.
Reboot
3.
Check /boot/grub2/grubenv

Actual results:
The file /boot/grub2/grubenv is changed

Expected results:
Should not be changed

Additional info:

Comment 1 Robbie Harwood 2022-04-19 19:22:19 UTC

*** This bug has been marked as a duplicate of bug 1975891 ***