diff options
author | Jesus Alvarez | 2017-07-30 17:41:06 -0700 |
---|---|---|
committer | Jesus Alvarez | 2017-07-30 17:41:06 -0700 |
commit | 360ecb8f4d3c5e43019f0c37acb45be8fb388936 (patch) | |
tree | 3b4ea6acb46ec82e6f0570172b6d0c79f9cd22bb /zfs.install | |
parent | 2df4db06dc9b18978fd6fc9115baae2c009e9790 (diff) | |
download | aur-360ecb8f4d3c5e43019f0c37acb45be8fb388936.tar.gz |
Semi-automated update for 4.9.40_1-1
Diffstat (limited to 'zfs.install')
-rw-r--r-- | zfs.install | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/zfs.install b/zfs.install index db6d6f4d6431..6d7d7c2ac42f 100644 --- a/zfs.install +++ b/zfs.install @@ -12,16 +12,11 @@ post_upgrade() { check_initramfs() { echo ">>> Updating ZFS module dependencies" - depmod -a 4.9.37-1-lts + depmod -a 4.9.40-1-lts MK_CONF=$(grep -v '#' /etc/mkinitcpio.conf | grep zfs >/dev/null; echo $?); - if [[ ${MK_CONF} == '0' ]]; then - if [[ $1 == 'remove' ]]; then - echo '>>> The ZFS packages have been removed, but "zfs" remains in the "hooks"' - echo '>>> list in mkinitcpio.conf! You will need to remove "zfs" from the ' - echo '>>> "hooks" list and then regenerate the initial ramdisk.' - else - echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..." - mkinitcpio -p linux-lts - fi + if [[ ${MK_CONF} == '0' && $1 == 'remove' ]]; then + echo '>>> The ZFS packages have been removed, but "zfs" remains in the "hooks"' + echo '>>> list in mkinitcpio.conf! You will need to remove "zfs" from the ' + echo '>>> "hooks" list and then regenerate the initial ramdisk.' fi } |