coren has submitted this change and it was merged.

Change subject: Labs: more minor fixes to labs_lvm
......................................................................


Labs: more minor fixes to labs_lvm

Mkfs also must avoid the /dev/mapper/ name.

Change-Id: I793ab3452d931059187b1a3bc07ca03307ae9878
---
M modules/labs_lvm/files/make-instance-vol
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  coren: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/labs_lvm/files/make-instance-vol 
b/modules/labs_lvm/files/make-instance-vol
index 7cd281c..737ad0a 100755
--- a/modules/labs_lvm/files/make-instance-vol
+++ b/modules/labs_lvm/files/make-instance-vol
@@ -10,7 +10,7 @@
 fi
 
 if /sbin/lvcreate $sopt -n "$name" vd; then
-  if ! /sbin/mkfs -t "$fstype" "$@" "/dev/mapper/vd-$name"; then
+  if ! /sbin/mkfs -t "$fstype" "$@" "/dev/vd/$name"; then
     /sbin/lvremove "vd/$name"
     exit 1
   else

-- 
To view, visit https://gerrit.wikimedia.org/r/117202
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I793ab3452d931059187b1a3bc07ca03307ae9878
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: coren <mpellet...@wikimedia.org>
Gerrit-Reviewer: coren <mpellet...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to