Skip to main content
Topic: grub-install.hook (Read 1729 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

grub-install.hook


/etc/pacman.d/hooks/grub-install.hook

Code: [Select]
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Target = usr/share/grub/*

[Action]
Description = New GRUB features provided ...
When = PostTransaction
# Exec = /etc/pacman.d/scripts/update-efi
# Exec = /etc/pacman.d/scripts/update-mbr

/etc/pacman.d/scripts/update-mbr

Code: [Select]
#!/bin/bash
grub-install --target=i386-pc /dev/sda &&
grub-mkconfig -o /boot/grub/grub.cfg

/etc/pacman.d/scripts/update-efi

Code: [Select]
#!/bin/bash
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub &&
grub-mkconfig -o /boot/grub/grub.cfg
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "