Fabian Deutsch has uploaded a new change for review.

Change subject: installer: Data disk initially same as boot disk
......................................................................

installer: Data disk initially same as boot disk

Previously the first enumerated disk was the default on the installation
device page.
To behave like the old installer, now the installation disk is initially
set to be the same disk as the boot disk.

Change-Id: I961b736385876cf8c17f30eadea053ae58435f73
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1062249
Signed-off-by: Fabian Deutsch <[email protected]>
---
M src/ovirt/node/installer/core/installation_device_page.py
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/56/24756/1

diff --git a/src/ovirt/node/installer/core/installation_device_page.py 
b/src/ovirt/node/installer/core/installation_device_page.py
index 5a2c3b0..4f1077d 100644
--- a/src/ovirt/node/installer/core/installation_device_page.py
+++ b/src/ovirt/node/installer/core/installation_device_page.py
@@ -45,7 +45,12 @@
         devices = self.storage_discovery.all_devices_for_ui_table()
         self.logger.debug("Available devices: %s" % devices)
         if devices:
+            selected_boot_dev = \
+                self.application.plugins()["Boot Device"]\
+                .model()["boot.device.current"]
             first_dev = devices[0][0]
+            if selected_boot_dev in devices:
+                first_dev = selected_boot_device
             self._model["installation.device.details"] = first_dev
             self._model["installation.device.current"] = first_dev
         return self._model


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I961b736385876cf8c17f30eadea053ae58435f73
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

Reply via email to