Failure to run grub-install on focal-arm64

Bug #1865002 reported by Paride Legovini
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Committed
Undecided
Unassigned
subiquity
Fix Released
Undecided
Unassigned

Bug Description

The Focal installer fails to run install-grub on arm64. The relevant curtin log excerpt is:

curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['sh', '-c', 'exec "$0" "$@" 2>&1', 'install-grub', '--uefi', '--update-nvram', '--os-family=debian', '/target', '/dev/vdb1']
Exit code: 1
Reason: -
Stdout: carryover command line params ''
        setting GRUB_CMDLINE_LINUX_DEFAULT to '' in etc/default/grub
        updated /target/etc/default/grub to set GRUB_CMDLINE_LINUX_DEFAULT=""
        basename: missing operand
        Try 'basename --help' for more information.

The failing basename command is in curtin's helpers/common at line 846. I'm attaching the full installer logs.

Note the presence of several errors like:

depmod: ERROR: ../libkmod/libkmod.c:515 lookup_builtin_file() could not open builtin file '/lib/modules/5.4.0-14-generic/modules.builtin.bin'

in the curtin log. I filed a different issue for these:

https://bugs.launchpad.net/curtin/+bug/1864992

Revision history for this message
Paride Legovini (paride) wrote :
tags: added: rls-ff-incoming
Revision history for this message
Ryan Harper (raharper) wrote :

This looks like the error around calculating the efi partition in grub-install code. This code was refactored to fix issues like this, so I believe this is already fixed in

https://git.launchpad.net/curtin/commit/?id=82f23e3d28741e4d1ec50e94a6bc966500cca0bf

Revision history for this message
Ryan Harper (raharper) wrote :

If subiquity moves to tip if ubuntu/devel, and respinds the snap, this should go away.

Changed in curtin:
status: New → Fix Committed
Revision history for this message
Paride Legovini (paride) wrote :

Looks like the subiquity snap has been updated.

Changed in subiquity:
status: New → Fix Released
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.