summaryrefslogtreecommitdiff
path: root/libre/linux-libre/linux.install
blob: dc4440d29164437d1874eeecbb976b3626bed7c2 (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-linux-libre.img
  rm -f boot/initramfs-linux-libre-fallback.img
}