[node-patches] Change in ovirt-node[master]: installer: Use shared subtree for initramfs regeneration

fabiand at redhat.com fabiand at redhat.com
Tue Dec 15 07:50:11 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: installer: Use shared subtree for initramfs regeneration
......................................................................

installer: Use shared subtree for initramfs regeneration

It seems that someties (root cause still unclear) the bind mount
ended up to be a private subtree.
this would leave some of our config files mounted in the
bind omunted subtree, and would prevent removal in the host
tree.
Now we explicitly set rshared for the bind mounted subtrees.

Change-Id: I9c5cf2e95dad62565dd45371ffd0fc3351602888
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1263648
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirtnode/install.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/81/50481/1

diff --git a/src/ovirtnode/install.py b/src/ovirtnode/install.py
index 5ea1d26..743bab7 100755
--- a/src/ovirtnode/install.py
+++ b/src/ovirtnode/install.py
@@ -737,7 +737,7 @@
             def rbind(path, updfs=updfs):
                 dst = updfs + "/" + path
                 logger.debug("Binding %r to %r" % (path, dst))
-                _call(["mount", "--rbind", "/" + path, dst])
+                _call(["mount", "--make-rshared", "--rbind", "/" + path, dst])
                 return dst
 
             for path in ["etc", "dev", "proc", "sys", "tmp", "run", "var/tmp"]:


-- 
To view, visit https://gerrit.ovirt.org/50481
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9c5cf2e95dad62565dd45371ffd0fc3351602888
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list