summarylogtreecommitdiffstats
path: root/zfs-utils.install
blob: 85d0a9f574da7c2418fa481ab8e20e5f1edd01dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_upgrade() {
    
    # If upgrading from 0.7.0_r211_g4e9b15696-1 or older
    # display zfs-import warning
    if [[ $(vercmp $2 0.7.0_r211_g4e9b15696-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 0.7.0_r275_g1b66810ba-1 or older
    # display encryption format change warning
    if [[ $(vercmp $2 0.7.0_r275_g1b66810ba-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
}