question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Matter hook disabled on grub upgrade

See original GitHub issue

Matter adds to the end of the /usr/sbin/grub-mkconfig script a call to itself so whenever the grub is updated (on a new kernel installation for example) matter can overwrite grub.cfg to put the icon classes in place.

However when the grub itself is upgraded, grub-mkconfig is overwritten effectively removing the Matter hook at the end, and you as an user need to “install” Matter again for keeping the correct icons.

One solution that comes to mind would be to place the hook on the package manager instead. With apt something like this would be needed. A problem with this approach is how to gracefully handle other package managers.

Hopefully there are other alternatives that you can come with. Any ideas are welcomed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nik-gautamcommented, Sep 30, 2020

Yeah, I can see that becoming troublesome.

I’ll look for some other solutions.

0reactions
mateossscommented, Jan 19, 2021

Solved in latest v1.1.0 release

It was implemented with the idea of the grub scripts in /etc/grub.d/. It turns out that grub upgrades do not delete those scripts so now there is one there that checks whether grub-mkconfig has been reverted and if so puts the hook back onto it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GRUB - ArchWiki
GRUB (GRand Unified Bootloader) is a boot loader. ... Tip: You can use pacman hooks to automount your /boot when upgrades need to...
Read more >
Grub Hook to grub-install and grub-mkconfig? - Newbie
The only thing I think I know is that sometimes/maybe/should/must/not necessary/recommended/required… to run those two commands after a Grub ...
Read more >
Bug #687501 “when installer is multipath aware, grub fails to ...
To reproduce: 1) ubuntu 10.4.1 server amd64 2) grub prompt# install disk-detect/multipath/enable=true 3) It doesn't matter how you partition ...
Read more >
Why do many tutorials use "update-grub"? : r/linuxquestions
update -grub , as I recently found out, is actually just a script that runs the following command: grub-mkcnfig -o /boot/grub/grub.cfg , so...
Read more >
Stuck in boot loop after update - Garuda Linux Forum
There actually is something going on with the latest grub update. It is causing multiple systems to be unbootable. There's a thread stuck...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found