summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7d9bfa7)
lvm2-lvmetad is gone since 2.03.01-1 (and its init script
was actually dropped later in 2.03.02-2).
Instead lvmpolld is available since 2.02.122-1.
While at it improve formatting, as startup of lvm2-lvmpolld (and
lvm2-lvmetad if present) displays a message on initial startup which
gets in between the "Searching for logical volumes and enabling them:"
and the display of present LVM devices, which isn't nice. So properly
split them.
Closes: grml/grml-autoconfig#10
fi
eend 0
if checkbootparam 'lvm' ; then
fi
eend 0
if checkbootparam 'lvm' ; then
- einfo "Bootoption LVM found. Searching for logical volumes and enabling them:"
- service_wrapper lvm2-lvmetad start
- vgchange -ay
- eend $?
+ einfo "Bootoption LVM found, enabling related services."
+ if [ -r /etc/init.d/lvm2-lvmetad ] ; then
+ service_wrapper lvm2-lvmetad start ; eend $?
+ fi
+ if [ -r /etc/init.d/lvm2-lvmpolld ] ; then
+ service_wrapper lvm2-lvmpolld start ; eend $?
+ fi
+ einfo "Searching for logical volumes and enabling them:"
+ vgchange -ay ; eend $?
+ einfo "Bootoption LVM found. Searching for logical volumes and enabling them:"
service_wrapper lvm2 start ; eend $?
fi
fi
service_wrapper lvm2 start ; eend $?
fi
fi