Fabian Deutsch has uploaded a new change for review. Change subject: installer: Fix storage vol page in dry mode ......................................................................
installer: Fix storage vol page in dry mode Change-Id: I3aeb360bc369bfc50025f60104940344ef23cf57 Signed-off-by: Fabian Deutsch <[email protected]> --- M src/ovirt/node/installer/core/storage_vol_page.py 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/68/19368/1 diff --git a/src/ovirt/node/installer/core/storage_vol_page.py b/src/ovirt/node/installer/core/storage_vol_page.py index 91757c6..443e026 100644 --- a/src/ovirt/node/installer/core/storage_vol_page.py +++ b/src/ovirt/node/installer/core/storage_vol_page.py @@ -18,12 +18,13 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, # MA 02110-1301, USA. A copy of the GNU General Public License is # also available at http://www.gnu.org/copyleft/gpl.html. - """ Storage Volume page of the installer """ + from ovirt.node import plugins, ui, valid from ovirt.node.exceptions import InvalidData +from ovirt.node.utils import process class Plugin(plugins.NodePlugin): @@ -139,6 +140,9 @@ def __get_default_sizes(self): if self.application.args.dry: + stdout = process.check_output("udisksctl info -b /dev/[sv]da* | grep Size", + shell=True) + self._drive_size = int(stdout.strip().split(":")[1].strip()) / 1024 / 1024 return {"storage.efi_size": "256", "storage.root_size": "50", "storage.swap_size": "0", -- To view, visit http://gerrit.ovirt.org/19368 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3aeb360bc369bfc50025f60104940344ef23cf57 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-node Gerrit-Branch: master Gerrit-Owner: Fabian Deutsch <[email protected]> _______________________________________________ node-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/node-patches
