Failure to run grub-install on focal-arm64
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.
Command: ['sh', '-c', 'exec "$0" "$@" 2>&1', 'install-grub', '--uefi', '--update-nvram', '--os-family=
Exit code: 1
Reason: -
Stdout: carryover command line params ''
setting GRUB_CMDLINE_
updated /target/
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/
in the curtin log. I filed a different issue for these:
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=82f23e3d287 41e4d1ec50e94a6 bc966500cca0bf