Andrew Bogott has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/179781

Change subject: Yet another preseed attempt
......................................................................

Yet another preseed attempt

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


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/81/179781/1

diff --git a/modules/install-server/files/autoinstall/partman/virt-hp.cfg 
b/modules/install-server/files/autoinstall/partman/virt-hp.cfg
index 43df8fd..8893a29 100644
--- a/modules/install-server/files/autoinstall/partman/virt-hp.cfg
+++ b/modules/install-server/files/autoinstall/partman/virt-hp.cfg
@@ -46,8 +46,10 @@
 d-i     partman-auto/choose_recipe      virtOS
 
 
-# Now, the nova volume.  Just one giant partition.
-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
+# Now, the nova volume.  Partman sucks at multiple drives, so instead this 
weird
+# late_command
+d-i preseed/late_command string echo ';' | sfdisk /dev/xvdb ; mkswap 
/dev/xvdb1 ; \
+    echo '/dev/sdb1 none swap sw 0 0' >> /target/etc/fstab ; \
+    echo ';' | sfdisk /dev/xvdb ; mke2fs -j -q /dev/xvdb1 ; \
+    mkdir /target/var/build ; \
+    echo '/dev/xvdb1 /var/build ext3 defaults 0 2' >> /target/etc/fstab

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If56eebae773380c702dc04330d2d3be634dcc0b1
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Andrew Bogott <[email protected]>

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

Reply via email to