summarylogtreecommitdiffstats
path: root/grub.install
blob: cf2e4b59535f58e19ecdc5a4e629af6649869c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
  if [ -f /boot/grub/grub.cfg.pacsave ]; then
    echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
    install -D -m0644 /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
  fi

  cat << 'EOM'
Generating grub.cfg.example config file...
This may fail on some machines running a custom kernel.
EOM

  grub-mkconfig -o /boot/grub/grub.cfg.example 2> /dev/null
  echo "done."
}