[node-patches] Change in ovirt-node[master]: umount partitions before mounting them

rbarry at redhat.com rbarry at redhat.com
Wed Oct 29 16:56:28 UTC 2014


Ryan Barry has uploaded a new change for review.

Change subject: umount partitions before mounting them
......................................................................

umount partitions before mounting them

Same unknown root cause as the rest of the installer changes.
Something is holding partitions from dirty reinstalls.

Change-Id: Icb87ee4153842e90472508f0fa6594f204e84268
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1158044
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirtnode/install.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/11/34611/1

diff --git a/src/ovirtnode/install.py b/src/ovirtnode/install.py
index 51e861d..45afecc 100755
--- a/src/ovirtnode/install.py
+++ b/src/ovirtnode/install.py
@@ -471,6 +471,8 @@
             if not _functions.system(e2label_cmd):
                 logger.error("Failed to label new Root partition")
                 return False
+        _functions.system("umount -l %s" % candidate_dev)
+        _functions.system("umount -l /liveos")
         mount_cmd = "mount \"%s\" /liveos" % candidate_dev
         _functions.system(mount_cmd)
         _functions.system("rm -rf /liveos/LiveOS")


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb87ee4153842e90472508f0fa6594f204e84268
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>



More information about the node-patches mailing list