Bug 2229703 - grub2-boot-success.timer cannot be disabled
Summary: grub2-boot-success.timer cannot be disabled
Keywords:
Status: CLOSED DUPLICATE of bug 2230575
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nicolas Frayer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-07 11:05 UTC by Sayan
Modified: 2024-04-08 16:09 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-08-09 20:20:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Sayan 2023-08-07 11:05:00 UTC
grub-boot-success.timer cannot be disabled as it is statically linked, this is causing issue for edge devices (Image based OS) which uses greenboot custom health-check to measure boot success.
The timer can be helpful for desktop related operation but for headless operation it doesn't make much sense, so another suggestion can be to move timer to a separate sub-package which edge device can choose not to install to.

Reproducible: Always

Steps to Reproduce:
1. Install rhel for edge system with presets added in /usr/lib/systemd/user-preset/50-osbiuld.preset "disable grub-boot-success.timer"
2. add a script with "exit 1" in /etc/greenboot/check/required.d/
3. restart 
4. ssh into system and instantly validate the boot_success flag
5. check systemctl --user status grub-boot-success.timer
6. wait for two minute.
7. validate the boot_success flag
Actual Results:  
1. systemctl --user status grub-boot-success.timer shows as active
2. boot_success flag changes fro 0 to 1.


Expected Results:  
1. grub-boot-success.timer to be disabled
2. boot_success not to change from 0 to 1 after two mins.

additional issue details: https://github.com/fedora-iot/greenboot/issues/108

Comment 1 Micah Abbott 2023-08-09 20:20:24 UTC

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


Note You need to log in before you can comment on or make changes to this bug.