summaryrefslogtreecommitdiff
path: root/kernels/linux-libre-lts-xtreme/linux.install
blob: f1f033b4e9ef0faca2c5679ef57bdd0b5d9e4a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_upgrade() {
  if [ "$(uname -m)" = "x86_64" ] || [ "$(uname -m)" = "i686" ]; then
    if findmnt --fstab -uno SOURCE /boot &>/dev/null && ! mountpoint -q /boot; then
      echo "WARNING: /boot appears to be a separate partition but is not mounted."
    fi
  fi
}

post_remove() {
  rm -f boot/initramfs-%PKGBASE%.img
  rm -f boot/initramfs-%PKGBASE%-fallback.img
}