summaryrefslogtreecommitdiff
path: root/libre/linux-libre-lts/linux-lts.install
diff options
context:
space:
mode:
Diffstat (limited to 'libre/linux-libre-lts/linux-lts.install')
-rw-r--r--libre/linux-libre-lts/linux-lts.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/libre/linux-libre-lts/linux-lts.install b/libre/linux-libre-lts/linux-lts.install
new file mode 100644
index 000000000..37ba37494
--- /dev/null
+++ b/libre/linux-libre-lts/linux-lts.install
@@ -0,0 +1,10 @@
+post_upgrade() {
+ 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
+}