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