[Bug 1815002] Re: quick-boot-lvm.patch caused regression - menu always appear if root is on Btrfs

Trideep Roy 1815002 at bugs.launchpad.net
Tue Aug 15 03:54:20 UTC 2023


Hi Steve,
I am seeing the same 30s timeout on "Elementary OS 7" which uses the following partitioning scheme for a standard install with disk encryption. 

$ lsblk -o NAME,PARTTYPENAME,FSTYPE,MOUNTPOINTSNAME            PARTTYPENAME     FSTYPE      MOUNTPOINTS
nvme0n1                                      
├─nvme0n1p1     EFI System       vfat        /boot/efi
├─nvme0n1p2     Linux filesystem ext4        /boot
└─nvme0n1p3     Linux filesystem crypto_LUKS 
  └─cryptdata                    LVM2_member 
    ├─data-root                  ext4        /
    └─data-swap                  swap        [SWAP]
Although the encrypted partition uses LVM the /boot and /boot/efi partitions are ESP and EXT4 and GRUB should be able to write to them. I verified that GRUB is able to write from the GRUB command line using the following commands -grub>list_envrecordfail=1grub>set recordfail=0grub>save_env recordfailgrub>list_envrecordfail=0grub>reboot
On rebooting after setting "recordfail=0" GRUB no longer shows the menu. But on the next boot after restarting the system using "sudo shutdown -r 0" GRUB again shows the menu. I confirmed that "recordfail" was reset to 1.

$ sudo grub-editenv /boot/efi/EFI/ubuntu/grub/grubenv list
recordfail=1
So it seems like GRUB is forcefully always setting recordfail to 1 on every boot even though GRUB should be able to write to the environment block on /boot and /boot/efi.

Here is my system information.
$ lsb_release -a
No LSB modules are available.
Distributor ID:	Elementary
Description:	elementary OS 7 Horus
Release:	7
Codename:	horus

$ uname -a
Linux t6-laptop 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

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

Title:
  quick-boot-lvm.patch caused regression - menu always appear if root is
  on Btrfs

Status in Default settings and artwork for Baltix OS:
  Triaged
Status in grub2 package in Ubuntu:
  Opinion
Status in grub2 package in Baltix:
  Triaged

Bug description:
  Comments about this regression:

  https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1800722/comments/12
  https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1800722/comments/13

  In my case menu starting to always appear on various devices from
  small tablets to workstations. First time it happened with laptop
  https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/736743/comments/95
  and since then more devices became affected. I not 100% sure, but
  seems like at least one unsuccessfully boot is required to reproduce
  this issue, but maybe I am mistake here and issue starting to happen
  for all Btrfs users.

To manage notifications about this bug go to:
https://bugs.launchpad.net/baltix-default-settings/+bug/1815002/+subscriptions




More information about the foundations-bugs mailing list