Installation error with Ununty Server 18.04 LTS - curthooks

Bug #1821972 reported by Darren Lines
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin (Ubuntu)
Incomplete
Undecided
Unassigned
efibootmgr (Ubuntu)
New
Undecided
Unassigned

Bug Description

I get the following error when I try to install Ubuntu Server 18.04 LTS:

Running command ['unmount', '/target/dev'] with allowed return codes [0] (capture=False)
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
Traceback (most recent call last):
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/main.py", line 201, in main ret = args.func(args)
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/curthooks.py", line 1290, in curthooks builtin_curthooks(cfg, target, state)
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/curthooks.py", line 1256, in builtin_curthooks setup_grub(cfg, target, osfamily=osfamily)
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/curthooks.py", line 376, in setup_grub uefi_remove_old_loaders(grubcfg, target)
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/commands/curthooks.py", line 227, in uefi_remove_old_loaders efi_output = uti.get_efibootmgr(target)
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/util.py", line 862, in get_efibootmgr stdout, _ = in_chroot.subp(['efibootmgr', '-v'], capture=True)
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/util.py", line 676, in subp return subp(*args, **kwargs)
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/util.py", line 266, in subp return _subp(*args, **kwargs)
  File "/snap/subiquity/664/lib/python3.6/site-packages/curtin/util.py", line 132, in _subp cmd=args)
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'efibootmgr', '-v']
Exit code: 18
Reason: -
Stdout: ** Warning ** : please recreate these using efibootmgr to remove this warning.
        BootCurrent: 000A
        Timeout: 1 seconds
        BootOrder: 000A,000B,0008
        Boot0008* TOSHIBA MQ01ABD100?BBS(HD,,0x0)AMBO
        Boot0008_BbsIndex
Stderr: ** Warning ** : Boot000b is not UEFI Spec compliant (lowercase hex in name)
        ** Warning ** : Bootffff is not UEFI Spec compliant (lowercase hex in name)
        Could not parse device path: No such file or directory

Unexpected error while running commaned.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/target', 'efibootmgr', '-v']
Exit code: 18
Reason: -
Stdout: ** Warning ** : please recreate these using efibootmgr to remove this warning.
        BootCurrent: 000A
        Timeout: 1 seconds
        BootOrder: 000A,000B,0008
        Boot0008* TOSHIBA MQ01ABD100?BBS(HD,,0x0)AMBO
        Boot0008_BbsIndex
Stderr: ** Warning ** : Boot000b is not UEFI Spec compliant (lowercase hex in name)
        ** Warning ** : Bootffff is not UEFI Spec compliant (lowercase hex in name)
        Could not parse device path: No such file or directory

This is a clean installation.

Steve Langasek (vorlon)
affects: shim-signed (Ubuntu) → efibootmgr (Ubuntu)
Revision history for this message
Ryan Harper (raharper) wrote :

Thanks for reporting the error.

Curtin is attempting to extract BootOrder and BootCurrent. A non-zero return code from running efibootmgr -v is unexpected.

It's not clear to me if this is a fatal error; it doesn't appear that way to me. If it isn't then ideally we'll need to determine the set of error codes that efibootmgr returns that aren't fatal to obtaining BootOrder and BootCurrent.

It may be the case that accepting non-zero exits from the --verbose command could hint that
attempting to change BootOrder may fail.

Changed in curtin (Ubuntu):
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.