-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matter hook disabled on grub upgrade #45
Comments
I do have an alternative solution, but there a few issues I am facing. So, instead of placing a hook to package manager itself, we can watch the shell commands which are being executed, which we can do watching files like When a command like Problems with this approach:-
|
Something that bothers me as well with that solution is having Matter read every command the user issues to his system. I don't know if that level of intrusion and use of resources is justifiable for a grub theme. Also you will need to account for every possible way of upgrading the grub. Is he using |
Yeah, I can see that becoming troublesome. I'll look for some other solutions. |
How about we run a This might slow down the shutdown a little bit, I am not sure about this. Excuse me, if I sound a bit noob, very new to grub. |
That's definitely a better approach, but not quite enough yet I think. An idea that comes to mind now that may lead to something is to dive into what happens when the grub is upgraded. It would be reasonable to think that maybe package managers execute a particular script from grub when upgrading it, like a post-upgrade hook that resides in the grub files itself and is not bound to a particular package manager. |
Something that may turn out to be very useful to tackle this issue, is to find an easy way to reproduce this problem. We'll not be able to implement this if we can only test if it works during real grub upgrades, will we? 😁 |
Testing will certainly be painful... Ok, I did some research i.e. a few google searches, and I found this article, according to which we can add scripts directly to But again, similar problem, if something goes wrong it might mess up the bootloader, which will be very bad. Also, comments on this stack exchange also mention a few useful tips. |
I completely ignored these types of scripts for some reason. For what I understand everything that those files throw at Could you check if these ideas are correct? It may be a solution to this issue if upgrades don't delete our script. |
On a recent apt upgrade, I found the packages that replaced
Everytime I tried to upgrade just one, apt will tell me it would upgrade the others. |
Solved in latest v1.1.0 release It was implemented with the idea of the grub scripts in |
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 overwritegrub.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.
The text was updated successfully, but these errors were encountered: