lvm2.install 1.3 KB

1234567891011121314151617181920212223242526
  1. post_upgrade() {
  2. if [ $(vercmp $2 2.02.98-2) -lt 0 ]; then
  3. echo "Changes to the lvm2 package:"
  4. echo " + Activating lvm in mkinitcpio now requires both the 'udev' and 'lvm2' hooks."
  5. echo " + LVM volumes are automatically activated by udev (full hotplug support)."
  6. echo " + You MUST have use_lvmetad = 1 in /etc/lvm/lvm.conf (the default)."
  7. echo " + If you uncomment auto_activation_volume_list in /etc/lvm/lvm.conf, only the"
  8. echo " volumes listed there will be activated (default: it is commented out)."
  9. if [ -f /etc/lvm/lvm.conf.pacnew ]; then
  10. echo "WARNING: /etc/lvm/lvm.conf.pacnew exists. You MUST merge the required changes"
  11. echo " into /etc/lvm/lvm.conf or LVM will fail to work."
  12. fi
  13. fi
  14. if [ $(vercmp $2 2.02.106-2) -lt 0 ]; then
  15. if [ -L /etc/systemd/system/sysinit.target.wants/lvm-monitoring.service ]; then
  16. echo "rm /etc/systemd/system/sysinit.target.wants/lvm-monitoring.service"
  17. rm /etc/systemd/system/sysinit.target.wants/lvm-monitoring.service
  18. echo "ln -s /usr/lib/systemd/system/lvm2-monitor.service /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service"
  19. ln -s /usr/lib/systemd/system/lvm2-monitor.service /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service
  20. fi
  21. fi
  22. }
  23. # vim:set ts=2 sw=2 et: