[Bug 1840560] Re: "error: can't find command hwmatch" during grub
Bill Miller
wbmilleriii at comcast.net
Mon Sep 16 15:21:51 UTC 2019
This problem affected me on a fresh install of Ubuntu 18.04. The
package grub-efi-amd64-bin doesn't include the hwmatch module in the
long list of modules it does install. But the script 10_linux in
/etc/grub.d/ references this hwmatch module, causing the error.
Note hwmatch *is* included in the modules installed by the BIOS version
of grub, grub-pc-bin.
I worked around this issue by commenting out the if-then structure in
the 10_linux and updating grub (see this Ask Ubuntu post for the code
https://askubuntu.com/questions/1174374/grub-issues-message-at-boot-
error-cant-find-command-hwmatch/1174386#1174386) but I am unsure what
functionality is missing because of this error of omission.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2-signed in Ubuntu.
https://bugs.launchpad.net/bugs/1840560
Title:
"error: can't find command hwmatch" during grub
Status in grub2-signed package in Ubuntu:
Confirmed
Bug description:
Upon disabling my grub menu using grub-customizer, I've noticed that
just before the system boots and goes into the crypto password prompt
the following error message appears on the display:
```
error: can't find command hwmatch
```
Looks like this command is referenced from /boot/grub/grub/cfg
```
if hwmatch ${prefix}/gfxblacklist.txt 3; then
```
However, the mod doesn't exist on grub's mod folder:
```
~ ls -la /boot/grub/x86_64-efi/*.mod|wc -l
269
~ ls -la /boot/grub/x86_64-efi/hw*
fish: No matches for wildcard “/boot/grub/x86_64-efi/hw*”
```
ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: grub-efi-amd64-signed 1.115+2.02+dfsg1-12ubuntu2
ProcVersionSignature: Ubuntu 5.0.0-25.26-generic 5.0.18
Uname: Linux 5.0.0-25-generic x86_64
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Aug 18 00:22:41 2019
InstallationDate: Installed on 2019-08-17 (0 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
SourcePackage: grub2-signed
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2-signed/+bug/1840560/+subscriptions
More information about the foundations-bugs
mailing list