summarylogtreecommitdiffstats
path: root/mkinitcpio.install
diff options
context:
space:
mode:
authorreplabrobin2015-06-09 08:32:00 +0100
committerreplabrobin2015-06-09 08:32:00 +0100
commit2627279cdc9b15dc251c6fb9d048a0c35ead427d (patch)
treeddb4d68569c90ad289ecb9256bae0f8dd3ed428b /mkinitcpio.install
downloadaur-2627279cdc9b15dc251c6fb9d048a0c35ead427d.tar.gz
Initial import
Diffstat (limited to 'mkinitcpio.install')
-rw-r--r--mkinitcpio.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/mkinitcpio.install b/mkinitcpio.install
new file mode 100644
index 000000000000..8571ee7d3f2d
--- /dev/null
+++ b/mkinitcpio.install
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+post_upgrade() {
+ if [ "$(vercmp 0.9.0 "$2")" -eq 1 ]; then
+ printf '==> If your /usr is on a separate partition, you must add the "usr" hook\n'
+ printf ' to /etc/mkinitcpio.conf and regenerate your images before rebooting\n'
+ fi
+
+ if [ "$(vercmp 0.12.0 "$2")" -eq 1 ]; then
+ printf '==> The "block" hook has replaced several hooks:\n'
+ printf ' fw, sata, pata, scsi, virtio, mmc, usb\n'
+ printf ' Replace any and all of these in /etc/mkinitcpio.conf with a single\n'
+ printf ' instance of the "block" hook\n'
+ fi
+}