summaryrefslogtreecommitdiff
path: root/libre/linux-libre/linux.install
blob: 5108979560a921dbfcc29d68d0b3ac7d0ef266ba (plain)
1
2
3
4
5
6
7
8
9
10
11
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
}

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