RFE: Include datehook module in default grub EFI image #12

Open
opened 2024-09-30 17:45:58 +00:00 by humaton · 0 comments
Member

Description of problem: grub contains the datehook module. But Fedora currently does not include it into the default EFI image. So when you want to use it, you have to build the EFI image yourself. Then it is not signed anymore. Also keeping it up to date is much more complicated. So please include datehook into the default EFI image. Version-Release number of selected component (if applicable): grub2-2.06-5 How reproducible: n/a Additional info: The datehook module makes the current date and time available to grub configuration as environment variables ($YEAR, $MONTH, $DAY, $HOUR, $MINUTE, $SECOND, $WEEKDAY). See http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/hook/datehook.c My usecase for it is to change the grub config entry that is booted by default based on time. The machines automatically boot at night and should then select a special config entry that automatically checks for updates and installs them. When the machine is rebooted during daytime, the normal image should boot. But I can imagine other usecases, like storing the last boot time in the grub environment and automatically starting a diagnose or rescue system if the last boot was only a short while ago.

Description of problem: grub contains the datehook module. But Fedora currently does not include it into the default EFI image. So when you want to use it, you have to build the EFI image yourself. Then it is not signed anymore. Also keeping it up to date is much more complicated. So please include datehook into the default EFI image. Version-Release number of selected component (if applicable): grub2-2.06-5 How reproducible: n/a Additional info: The datehook module makes the current date and time available to grub configuration as environment variables ($YEAR, $MONTH, $DAY, $HOUR, $MINUTE, $SECOND, $WEEKDAY). See http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/hook/datehook.c My usecase for it is to change the grub config entry that is booted by default based on time. The machines automatically boot at night and should then select a special config entry that automatically checks for updates and installs them. When the machine is rebooted during daytime, the normal image should boot. But I can imagine other usecases, like storing the last boot time in the grub environment and automatically starting a diagnose or rescue system if the last boot was only a short while ago.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: rpms/grub2#12
No description provided.