diff options
Diffstat (limited to 'libre/linux-libre/linux.install.pkg')
-rw-r--r-- | libre/linux-libre/linux.install.pkg | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libre/linux-libre/linux.install.pkg b/libre/linux-libre/linux.install.pkg new file mode 100644 index 000000000..dc4440d29 --- /dev/null +++ b/libre/linux-libre/linux.install.pkg @@ -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-linux-libre.img + rm -f boot/initramfs-linux-libre-fallback.img +} |