[Bug 2017304] Re: crash during subuiquity installation with 23.04 arm64 live server

Olivier Gayot 2017304 at bugs.launchpad.net
Thu May 4 09:18:34 UTC 2023


*** This bug is a duplicate of bug 2018280 ***
    https://bugs.launchpad.net/bugs/2018280

Hello Taihsiang,

We've seen similar reports for this issue during the past weeks. Every
time, the BootCurrent entry has no associated BootXXXX entry. I looked
in the UEFI spec and it's still unclear to me if this is a stretch or a
broken implementation.

That said, based on the number of reports, I believe we should still do
something about it. As far as subiquity is concerned, I don't think
trying to set the install media as the first boot entry makes sense so
I've disabled the behavior in
https://github.com/canonical/subiquity/pull/1671

I'd still argue that curtin should do the right think on "broken" UEFI
implementations if we can.

Thanks,
Olivier

** This bug has been marked a duplicate of bug 2018280
   Invalid BootEntry while reordering boot entries on some UEFI implementations

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

Title:
  crash during subuiquity installation with 23.04 arm64 live server

Status in curtin package in Ubuntu:
  New
Status in subiquity package in Ubuntu:
  New

Bug description:
  When installing an Ampere Mt. Jade AltraMax server with the latest
  Lunar Lobster 23.04 arm64 ubuntu-23.04-live-server-arm64.iso
  https://cdimage.ubuntu.com/ubuntu/releases/23.04/release/ubuntu-23.04-live-
  server-arm64.iso , curtin crash for this traceback:

  Running command ['umount', '/target/dev'] with allowed return codes [0] (capture=False)
  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/4678/lib/python3.10/site-packages/curtin/commands/main.py", line 202, in main
      ret = args.func(args)
    File "/snap/subiquity/4678/lib/python3.10/site-packages/curtin/commands/curthooks.py", line 1918, in curthooks
      builtin_curthooks(cfg, target, state)
    File "/snap/subiquity/4678/lib/python3.10/site-packages/curtin/commands/curthooks.py", line 1883, in builtin_curthooks
      setup_grub(cfg, target, osfamily=osfamily,
    File "/snap/subiquity/4678/lib/python3.10/site-packages/curtin/commands/curthooks.py", line 824, in setup_grub
      uefi_reorder_loaders(grubcfg, target, efi_orig_output, variant)
    File "/snap/subiquity/4678/lib/python3.10/site-packages/curtin/commands/curthooks.py", line 566, in uefi_reorder_loaders
      in_chroot.subp(['efibootmgr', '-o', new_boot_order])
    File "/snap/subiquity/4678/lib/python3.10/site-packages/curtin/util.py", line 787, in subp
      return subp(*args, **kwargs)
    File "/snap/subiquity/4678/lib/python3.10/site-packages/curtin/util.py", line 275, in subp
      return _subp(*args, **kwargs)
    File "/snap/subiquity/4678/lib/python3.10/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', '-o', '000A,0000,0007,0006,0008']
  Exit code: 8
  Reason: -
  Stdout: ''
  Stderr: ''
  Unexpected error while running command.
  Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'efibootmgr', '-o', '000A,0000,0007,0006,0008']
  Exit code: 8
  Reason: -
  Stdout: ''
  Stderr: ''

  
  Steps to reproduce:
  1. Grab a Ampere Mt. Jade AltraMax server
  2. Install the image from https://cdimage.ubuntu.com/ubuntu/releases/23.04/release/ubuntu-23.04-live-server-arm64.iso via the virtual CD provided by its BMC
  3. Use every default value prompted by subiquity

  
  Expected result:
  subiquity finishes installation

  Actual result:
  curtin crashes at the last stage

  
  Additional information:
  Please refer to the attachment var.log.tar.gz to check the detailed logs from /var/log . I collected the attachment by logging in the subiquity shell.

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




More information about the foundations-bugs mailing list