• Update grub automatically


    Hi!
    To update the grub menu automatically after installing or removing a kernel, write the following lines to file /etc/pacman.d/hooks/grub-auto-update.hook:

    [Trigger]
    Operation = Install
    Operation = Remove
    Type = Package
    Target = linux
    Target = linux-lts
    
    [Action]
    Description = Update grub after installing or removing a kernel.
    When = PostTransaction
    Depends = grub
    Exec = /bin/sh -c "/usr/bin/grub-mkconfig -o /boot/grub/grub.cfg"
    

    Note that you may need to create the directory first:

    sudo mkdir -p /etc/pacman.d/hooks
    
  • Added the above as a package named grub-auto-update in the repo at https://github.com/manuel-192/antergos-m.

grub126 automatically13 Posts 2Views 72
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.