summarylogtreecommitdiffstats
path: root/zfs-utils.install
diff options
context:
space:
mode:
authorJan Houben2018-11-10 19:44:47 -0500
committerJan Houben2018-11-10 19:44:47 -0500
commitf85d859de36052f8a85a4e57f979e4cd1537996b (patch)
treec668a04040a171abf979c20a93287ab060dff552 /zfs-utils.install
parent893f94629951734fb5e4e5e11e183045998c11f8 (diff)
downloadaur-f85d859de36052f8a85a4e57f979e4cd1537996b.tar.gz
Import from zfs-utils-common-git
Diffstat (limited to 'zfs-utils.install')
-rw-r--r--zfs-utils.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/zfs-utils.install b/zfs-utils.install
new file mode 100644
index 000000000000..914ed46bf477
--- /dev/null
+++ b/zfs-utils.install
@@ -0,0 +1,18 @@
+post_upgrade() {
+
+ # If upgrading from 2017.12.08.r3208.4e9b15696-1 or older
+ # display zfs-import warning
+ if [[ $(vercmp $2 2017.12.08.r3208.4e9b15696-1) -le 0 ]]; then
+ echo '>>> WARNING: A new systemd unit file was added to archzfs!'
+ echo '>>> You may need enable zfs-import.target'
+ echo '>>> See https://github.com/archzfs/archzfs/issues/186'
+ fi
+
+ # If upgrading from 2018.02.02.r3272.1b66810ba-1 or older
+ # display encryption format change warning
+ if [[ $(vercmp $2 2018.02.02.r3272.1b66810ba-1) -le 0 ]]; then
+ echo '>>> WARNING: The on-disk format for encrypted datasets has changed!'
+ echo '>>> All encrypted datasets will mount read only and need to be migrated.'
+ echo '>>> See https://github.com/archzfs/archzfs/issues/222'
+ fi
+}