Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1972823 Details for
Bug 2092273
/boot/grub2/grubenv's timestamp is getting modified continuously due to "boot_success" implementation
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh89 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to modify grubenv just once per bootflag
0327-Do-not-modify-grubenv-if-the-flag-is-already-set.patch (text/plain), 914 bytes, created by
Petr Janda
on 2023-06-27 12:25:35 UTC
(
hide
)
Description:
patch to modify grubenv just once per bootflag
Filename:
MIME Type:
Creator:
Petr Janda
Created:
2023-06-27 12:25:35 UTC
Size:
914 bytes
patch
obsolete
>From 1e1d0b4999a587d332e921ecb19c8a33742fc115 Mon Sep 17 00:00:00 2001 >From: Petr Janda <pjanda@redhat.com> >Date: Mon, 26 Jun 2023 14:56:33 +0200 >Subject: [PATCH] Do not modify grubenv if the flag is already set. > >There is no need to rewrite grubenv file in case the requested bootflag >is already set > >related to: bz 2092273 >--- > util/grub-set-bootflag.c | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/util/grub-set-bootflag.c b/util/grub-set-bootflag.c >index 3b4c25ca2..6005f727c 100644 >--- a/util/grub-set-bootflag.c >+++ b/util/grub-set-bootflag.c >@@ -154,6 +154,13 @@ int main(int argc, char *argv[]) > return 1; > } > >+ if (s && (s[len + 1] == '1')) >+ { >+ /* Flag is already set. Nothing to do. */ >+ printf(stderr, "Flag is already set! Nothing to be done\n"); >+ return 0; >+ } >+ > /* No pre-existing bootflag? -> find free space */ > if (!s) > { >-- >2.39.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 2092273
:
1972823
|
1972824