[Bug 1840560] Re: "error: can't find command hwmatch" during grub

Rodrigo Valentim 1840560 at bugs.launchpad.net
Mon May 25 14:12:52 UTC 2020


Well, that's happening with me every time I forget to use my
"workaround", because my boot fail, asking to load kernel first. Before
find this bug here, I found several users with same issue and unable to
boot too, so I think it's important to fix it, otherwise people like me
may have more issues and because of this we can't see the others, ending
up doing the "wrong fix".

When that happen I use my "workaround", which is turn off the laptop,
wait around 10 seconds (less than that the issue continues), than turn
on keeping some keys down (normally I use the down key + ESC), with that
I can't see the error and boot works fine.

I don't know if this bug is the reason for failling the boot or why my
"workarond" works, but that's is happening only with Kubuntu 20.04 for
me, I tried other distro and was OK.

-- 
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