In GRUB we have
debian/patches/efivar-check-that-efivarfs-is-writeable.patch
which ensures that if EFI variables exist but are no writable we don't throw an 
error in grub-install.

Commit 931e97b57b64 ("linux: handle non-ACPI systems in device_get()")
in https://github.com/rhinstaller/efivar ensures that EFI variables can
be accessed by efibootmgr on non-ACPI systems. Since efivar
(37-6ubuntu3) this fix is available in Mantic and Noble.

Closing as fix released.


** Changed in: subiquity
       Status: New => Fix Released

** Changed in: curtin (Ubuntu)
       Status: Confirmed => Fix Released

-- 
You received this bug notification because you are a member of
Canonical's Ubuntu QA, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2003222

Title:
  Subiquity crash on Lenovo X13s because UEFI variables not supported

Status in subiquity:
  Fix Released
Status in curtin package in Ubuntu:
  Fix Released

Bug description:
  The following crash occurs in curtin.
  The device does not provide access to UEFI variables at runtime.

  The error from efibootmgr should only result in a warning and not stop
  the installation process.

           finish: 
cmd-install/stage-curthooks/builtin/cmd-curthooks/install-grub: FAIL: 
installing grub to target devices
           finish: 
cmd-install/stage-curthooks/builtin/cmd-curthooks/configuring-bootloader: FAIL: 
configuring target system bootloader
           finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: 
curtin command curthooks
           Traceback (most recent call last):
             File 
"/snap/subiquity/4236/lib/python3.8/site-packages/curtin/commands/main.py", 
line 202, in main
               ret = args.func(args)
             File 
"/snap/subiquity/4236/lib/python3.8/site-packages/curtin/commands/curthooks.py",
 line 1903, in curthooks
               builtin_curthooks(cfg, target, state)
             File 
"/snap/subiquity/4236/lib/python3.8/site-packages/curtin/commands/curthooks.py",
 line 1868, in builtin_curthooks
               setup_grub(cfg, target, osfamily=osfamily,
             File 
"/snap/subiquity/4236/lib/python3.8/site-packages/curtin/commands/curthooks.py",
 line 818, in setup_grub
               efi_orig_output = util.get_efibootmgr(target)
             File 
"/snap/subiquity/4236/lib/python3.8/site-packages/curtin/util.py", line 967, in 
get_efibootmgr
               stdout, _ = in_chroot.subp(['efibootmgr', '-v'], capture=True)
             File 
"/snap/subiquity/4236/lib/python3.8/site-packages/curtin/util.py", line 787, in 
subp
               return subp(*args, **kwargs)
             File 
"/snap/subiquity/4236/lib/python3.8/site-packages/curtin/util.py", line 275, in 
subp
               return _subp(*args, **kwargs)
             File 
"/snap/subiquity/4236/lib/python3.8/site-packages/curtin/util.py", line 139, in 
_subp
               raise ProcessExecutionError(stdout=out, stderr=err,
           curtin.util.ProcessExecutionError: Unexpected error while running 
command.
           Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 
'efibootmgr', '-v']
           Exit code: 2
           Reason: -
           Stdout: ''
           Stderr: EFI variables are not supported on this system.
                   
           Unexpected error while running command.
           Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 
'efibootmgr', '-v']
           Exit code: 2
           Reason: -
           Stdout: ''
           Stderr: EFI variables are not supported on this system.

To manage notifications about this bug go to:
https://bugs.launchpad.net/subiquity/+bug/2003222/+subscriptions


-- 
Mailing list: https://launchpad.net/~canonical-ubuntu-qa
Post to     : canonical-ubuntu-qa@lists.launchpad.net
Unsubscribe : https://launchpad.net/~canonical-ubuntu-qa
More help   : https://help.launchpad.net/ListHelp

Reply via email to