[node-patches] Change in ovirt-node[master]: Switch BOOT_SIZE back to 50MB

jboggs at redhat.com jboggs at redhat.com
Wed Oct 24 01:53:10 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: Switch BOOT_SIZE back to 50MB
......................................................................

Switch BOOT_SIZE back to 50MB

rhbz#869300

Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: I51a536e87b946dd2f36de6182549b7e37c49f953
---
M scripts/ovirtnode/storage.py
1 file changed, 5 insertions(+), 5 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/54/8754/1

diff --git a/scripts/ovirtnode/storage.py b/scripts/ovirtnode/storage.py
index b83514c..78ffc17 100644
--- a/scripts/ovirtnode/storage.py
+++ b/scripts/ovirtnode/storage.py
@@ -35,7 +35,7 @@
         logger.propagate = False
         OVIRT_VARS = _functions.parse_defaults()
         self.overcommit = 0.5
-        self.BOOT_SIZE = 256
+        self.BOOT_SIZE = 50
         self.ROOT_SIZE = 256
         self.CONFIG_SIZE = 5
         self.LOGGING_SIZE = 2048
@@ -698,11 +698,11 @@
             parted_cmd = "parted %s -s \"mklabel %s\"" % (self.BOOTDRIVE,
                                                           self.LABEL_TYPE)
             _functions.system(parted_cmd)
-            parted_cmd = ("parted \"%s\" -s \"mkpart primary ext2 1M 256M\"" %
-                       self.BOOTDRIVE)
+            parted_cmd = ("parted \"%s\" -s \"mkpart primary ext2 1M %sM\"" %
+                         (self.BOOTDRIVE, self.BOOT_SIZE))
             _functions.system(parted_cmd)
-            parted_cmd = ("parted \"%s\" -s \"mkpart primary ext2 256M " +
-                          "512M\"") % self.BOOTDRIVE
+            parted_cmd = ("parted \"%s\" -s \"mkpart primary ext2 %sM %sM\"" %
+                         (self.BOOTDRIVE, self.BOOT_SIZE, self.BOOT_SIZE*2))
             _functions.system(parted_cmd)
             parted_cmd = ("parted \"" + self.BOOTDRIVE + "\" -s \"set 1 " +
                          "boot on\"")


--
To view, visit http://gerrit.ovirt.org/8754
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I51a536e87b946dd2f36de6182549b7e37c49f953
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list