summarylogtreecommitdiffstats
path: root/grub-libzfs.install
blob: c268996d1e57d5d43ad108d63aa6733ccc897324 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

post_upgrade() {
  # We used to package /boot/grub/grub.cfg, but there is no reason to.
  # Remove the file from package, but move real file back in place.
  if [ ! -f /boot/grub/grub.cfg -a -f /boot/grub/grub.cfg.pacsave ]; then
    mv /boot/grub/grub.cfg.pacsave /boot/grub/grub.cfg
  fi

  # return if old package version greater 2:2.06-0...
  (( $(vercmp $2 '2:2.06-0') > 0 )) && return

  if [[ -e /sys/firmware/efi/efivars ]]; then
    cat <<EOM
:: Grub does no longer support side-loading modules when secure boot is
   enabled. Thus booting will fail, unless you have an efi executable
   'grubx64.efi' with bundled modules.
EOM
  fi
}

post_install() {
  cat <<EOM
:: Generate your bootloader configuration with:
     grub-mkconfig -o /boot/grub/grub.cfg
EOM
}