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