[Bug 2136978] Re: grub2-common.service fails to load after cold reboot

2026-01-05 Thread Stefan Bader
The relevant error seems to be "grub-editenv: error: invalid environment
block" which both units emit when failing (grub-common.service and grub-
initrd-fallback.service). In both cases grub-editenv is called to modify
the content of /boot/grub/grubenv.

I suspect something sets values shortly before reboot and reaching those
targets is supposed to unset them to indicate a successful boot. I am
not sure how much the kernel is directly having an impact here. Other
than maybe a different behavior on flushing pending writes on a
filesystem... In the end it seems the grubenv file gets corrupted. It
would be interesting to know whether after failing the following command
still shows issues: "grub-editenv /boot/grub/grubenv list".

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136978

Title:
  grub2-common.service fails to load after cold reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2136978/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2136978] Re: grub2-common.service fails to load after cold reboot

2025-12-23 Thread Nancy Chen
The issue is also intermittently seen on the other two HP machines.

https://certification.canonical.com/hardware/202002-27718/submission/463483/test-results/fail/
https://certification.canonical.com/hardware/202004-27810/submission/463528/test-results/fail/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136978

Title:
  grub2-common.service fails to load after cold reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2136978/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2136978] Re: grub2-common.service fails to load after cold reboot

2025-12-22 Thread Nancy Chen
** Tags added: cert-sru

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136978

Title:
  grub2-common.service fails to load after cold reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2136978/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 2136978] Re: grub2-common.service fails to load after cold reboot

2025-12-22 Thread Nancy Chen
** Description changed:

  In questing (Ubuntu 6.17.0-10.10-generic 6.17.6) SRU,
- grub2-common.service fails to load after a cold reboot.
+ grub2-common.service and grub-initrd-fallback.service fails to load
+ after a cold reboot. The issue is intermittent, occurring roughly 2 out
+ of 3 times.
  
+ 
+ [grub2-common.service]
  
  Found 1 failed units
  
  Failed units:
-   UNIT LOAD   ACTIVE SUBDESCRIPTION
+   UNIT LOAD   ACTIVE SUBDESCRIPTION
  ● grub2-common.service loaded failed failed Record successful boot for GRUB
  
  Legend: LOAD   → Reflects whether the unit definition was properly loaded.
- ACTIVE → The high-level unit activation state, i.e. generalization of 
SUB.
- SUB→ The low-level unit activation state, values depend on unit 
type.
+ ACTIVE → The high-level unit activation state, i.e. generalization of 
SUB.
+ SUB→ The low-level unit activation state, values depend on unit 
type.
  
  1 loaded units listed.
  
  Logs for grub2-common.service:
  Dec 18 01:02:41 hp-z2-sff-g8-workstation-c28728 systemd[1]: Starting 
grub2-common.service - Record successful boot for GRUB...
  Dec 18 01:02:41 hp-z2-sff-g8-workstation-c28728 systemd[1]: 
grub2-common.service: Deactivated successfully.
  Dec 18 01:02:41 hp-z2-sff-g8-workstation-c28728 systemd[1]: Finished 
grub2-common.service - Record successful boot for GRUB.
  -- Boot da9365ec35d74b3daf57b217b9546de2 --
  Dec 18 01:07:51 hp-z2-sff-g8-workstation-c28728 systemd[1]: Starting 
grub2-common.service - Record successful boot for GRUB...
  Dec 18 01:07:51 hp-z2-sff-g8-workstation-c28728 systemd[1]: 
grub2-common.service: Deactivated successfully.
  Dec 18 01:07:51 hp-z2-sff-g8-workstation-c28728 systemd[1]: Finished 
grub2-common.service - Record successful boot for GRUB.
  -- Boot 5c9c60063d6246f5af3f9599d44f3a21 --
  Dec 18 01:12:22 hp-z2-sff-g8-workstation-c28728 systemd[1]: Starting 
grub2-common.service - Record successful boot for GRUB...
  Dec 18 01:12:22 hp-z2-sff-g8-workstation-c28728 systemd[1]: 
grub2-common.service: Deactivated successfully.
  Dec 18 01:12:22 hp-z2-sff-g8-workstation-c28728 systemd[1]: Finished 
grub2-common.service - Record successful boot for GRUB.
  -- Boot b277eafbf82c4bf9a80c0c7f3b472366 --
  Dec 18 01:13:59 hp-z2-sff-g8-workstation-c28728 systemd[1]: Starting 
grub2-common.service - Record successful boot for GRUB...
  Dec 18 01:13:59 hp-z2-sff-g8-workstation-c28728 systemd[1]: 
grub2-common.service: Deactivated successfully.
  Dec 18 01:13:59 hp-z2-sff-g8-workstation-c28728 systemd[1]: Finished 
grub2-common.service - Record successful boot for GRUB.
  Dec 18 01:31:46 hp-z2-sff-g8-workstation-c28728 systemd[1]: Starting 
grub2-common.service - Record successful boot for GRUB...
  Dec 18 01:31:46 hp-z2-sff-g8-workstation-c28728 systemd[1]: 
grub2-common.service: Deactivated successfully.
  Dec 18 01:31:46 hp-z2-sff-g8-workstation-c28728 systemd[1]: Finished 
grub2-common.service - Record successful boot for GRUB.
  -- Boot 55c8c8cfac8c4b7d8923ab41bc58b6e0 --
  Dec 18 01:34:58 hp-z2-sff-g8-workstation-c28728 systemd[1]: Starting 
grub2-common.service - Record successful boot for GRUB...
  Dec 18 01:34:58 hp-z2-sff-g8-workstation-c28728 systemd[1]: 
grub2-common.service: Deactivated successfully.
  Dec 18 01:34:58 hp-z2-sff-g8-workstation-c28728 systemd[1]: Finished 
grub2-common.service - Record successful boot for GRUB.
  -- Boot f8ad1f3273f74015bba21667ffb49063 --
  Dec 18 01:38:02 hp-z2-sff-g8-workstation-c28728 systemd[1]: Starting 
grub2-common.service - Record successful boot for GRUB...
  Dec 18 01:38:02 hp-z2-sff-g8-workstation-c28728 grub-editenv[1952]: 
grub-editenv: error: invalid environment block.
  Dec 18 01:38:02 hp-z2-sff-g8-workstation-c28728 systemd[1]: 
grub2-common.service: Main process exited, code=exited, status=1/FAILURE
  Dec 18 01:38:02 hp-z2-sff-g8-workstation-c28728 systemd[1]: 
grub2-common.service: Failed with result 'exit-code'.
  Dec 18 01:38:02 hp-z2-sff-g8-workstation-c28728 systemd[1]: Failed to start 
grub2-common.service - Record successful boot for GRUB.
  
+ Checkbox submission:
+ 
https://certification.canonical.com/hardware/202102-28728/submission/463544/test-
+ results/fail/
  
- Checkbox submission: 
https://certification.canonical.com/hardware/202102-28728/submission/463544/test-results/fail/
+ 
+ [grub-initrd-fallback.service]
+ 
+   Found 1 failed units
+ 
+ Failed units:
+   UNIT LOAD   ACTIVE SUBDESCRIPTION
+ ● grub-initrd-fallback.service loaded failed failed GRUB failed boot detection
+ 
+ Legend: LOAD   → Reflects whether the unit definition was properly loaded.
+ ACTIVE → The high-level unit activation state, i.e. generalization of 
SUB.
+ SUB→ The low-level unit activation state, values depend on unit 
type.
+ 
+ 1 loaded units listed.
+ 
+ Logs for grub-initrd-fallback.service:
+ Dec 22 14:46:22 hp-z2-sff-g8-workstation-c28728 systemd[1

[Bug 2136978] Re: grub2-common.service fails to load after cold reboot

2025-12-22 Thread Ubuntu Kernel Bot
** Tags added: kernel-daily-bug

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136978

Title:
  grub2-common.service fails to load after cold reboot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2136978/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs