Andrew Bogott has submitted this change and it was merged.

Change subject: Another long-shot partman attempt.
......................................................................


Another long-shot partman attempt.

Some googling suggests that partman just can't  handle
two drives.  So, use preseed/late_command instead.

Change-Id: I3c51704f2907a89da11268f1e62ffa7fd64e0bbd
---
M modules/install-server/files/autoinstall/partman/virt-hp.cfg
1 file changed, 4 insertions(+), 13 deletions(-)

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



diff --git a/modules/install-server/files/autoinstall/partman/virt-hp.cfg 
b/modules/install-server/files/autoinstall/partman/virt-hp.cfg
index e1a4cd8..bfde86a 100644
--- a/modules/install-server/files/autoinstall/partman/virt-hp.cfg
+++ b/modules/install-server/files/autoinstall/partman/virt-hp.cfg
@@ -47,16 +47,7 @@
 
 
 # Now, the nova volume.  Just one giant partition.
-
-d-i    partman-auto/disk       string  /dev/sdb
-
-d-i    partman-auto/expert_recipe      string   virtVM ::      \
-               10000 8000 -1 ext4 \
-                       method{ format }        \
-                       format{ }               \
-                       use_filesystem{ }       \
-                       filesystem{ ext4 }      \
-                       mountpoint{ /srv }      \
-               .
-
-d-i     partman-auto/choose_recipe      virtVM
+d-i preseed/late_command string echo ';' | sfdisk /dev/xvdb ; \
+    mke2fs -j -q /dev/xvdb1 -t ext4; \
+    mkdir /target/srv ; \
+    echo '/dev/xvdb1 /srv ext4 defaults 0 2' >> /target/etc/fstab

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3c51704f2907a89da11268f1e62ffa7fd64e0bbd
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>
Gerrit-Reviewer: Andrew Bogott <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to