Grub not updated after system update

pamac does not run grub-mkconfig after system update. i have to execute it manually. where to find the cause and solution?

Prove?

grep "2024-10-10" /var/log/pacman.log

update-grub is not installed, which contains also 99-update-grub.hook for pacman/pamac. Too much cleanup?

1 Like

Hi @m4jq,

To have it run manually magically, install the Manjaro-made install-grub package from the core repository:

pamac install install-grub
1 Like

its already installed

pamac install install-grub
Preparation…
Note: install-grub-2.12-5 is in the latest version – skip
There is nothing to do.
Operation successfully completed.

That’s not

:wink:

1 Like

Please provide the output of:

file $(pamac list -f install-grub)

:bangbang: Tip :bangbang:

When posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Sed
sollicitudin dolor
eget nisl elit id
condimentum
arcu erat varius
cursus sem quis eros.

Instead of like this:

Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby increasing legibility thus making it easier for those trying to provide assistance.

For more information, please see:


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

updating the already installed grub’s configuration, and upgrading grub itself are two separate things. Hooks to update its config are already there, otherwise you wouldn’t be able to reboot to the updated kernel. See this for more clarity - Confused about re-installation of grub bootloader - #3 by GeorgeB

I know. Wasn’t even slightly referring to it.

update-grub is not installed

thx! it works!

2 Likes

Any sufficiently under-explained Linux is indistinguishable from magic

Spoiler
$ cat /usr/share/libalpm/hooks/98-install-grub.hook
[Trigger]
Type = Package
Operation = Upgrade
Target = grub

[Action]
Description = Installing Grub to MBR/EFI
When = PostTransaction
Exec = /usr/bin/install-grub

Recent Manjaro ISOs (since 24.0.5) include both update-grub and install-grub
Earlier ISOs included update-grub only
Anyone who is rolling a Manjaro install from an earlier ISO can install install-grub

1 Like

Below are install-grub and update-grub why are thy not the same?

[robin0800@robins-desktop ~]$ cat /usr/share/libalpm/hooks/98-install-grub.hook
[Trigger]
Type = Package
Operation = Upgrade
Target = grub

[Action]
Description = Installing Grub to MBR/EFI
When = PostTransaction
Exec = /usr/bin/install-grub

[robin0800@robins-desktop ~]$ cat /usr/share/libalpm/hooks/99-update-grub.hook
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/lib/modules//vmlinuz
Target = boot/vmlinuz

[Action]
Description = Updating Grub-Bootmenu
When = PostTransaction
Exec = /usr/bin/update-grub

This one:

…simply updates your grub menu when a new kernel is installed. And this one:

Causes grub to be reinstalled on your MBR/EFI when it gets updated.

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.