This deprecated service has been removed from lvm2 in Fedora 31:
https://src.fedoraproject.org/rpms/lvm2/c/0469456b352530d9f507f2515e674bfb03671f48
Change-Id: I06d572a72969c5e5e8e038caef19e358e4f97b2b
| ... | ... |
@@ -124,13 +124,15 @@ function init_lvm_volume_group {
|
| 124 | 124 |
local vg=$1 |
| 125 | 125 |
local size=$2 |
| 126 | 126 |
|
| 127 |
- # Start the lvmetad and tgtd services |
|
| 128 |
- if is_fedora || is_suse; then |
|
| 127 |
+ # Start the lvmetad on f30 (dropped from f31) or SUSE |
|
| 128 |
+ if [[ $DISTRO =~ f30 ]] || is_suse; then |
|
| 129 | 129 |
# services is not started by default |
| 130 | 130 |
start_service lvm2-lvmetad |
| 131 |
- if [ "$CINDER_ISCSI_HELPER" = "tgtadm" ]; then |
|
| 132 |
- start_service tgtd |
|
| 133 |
- fi |
|
| 131 |
+ fi |
|
| 132 |
+ |
|
| 133 |
+ # Start the tgtd service on Fedora and SUSE if tgtadm is used |
|
| 134 |
+ if is_fedora || is_suse && [[ "$CINDER_ISCSI_HELPER" = "tgtadm" ]]; then |
|
| 135 |
+ start_service tgtd |
|
| 134 | 136 |
fi |
| 135 | 137 |
|
| 136 | 138 |
# Start with a clean volume group |