FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

LinkBack Thread Tools
Old 08-11-2010, 10:53 AM
Paul Howarth
Default Retain order of umountCmds

The order of execution of umounts is the reverse of the order of
the mounts, so as to deal with a hierarchy of mounts correctly.
The ordering is reversed by _umountall but was being left in the
reversed state so that the next time _umountall was called, it
attempted to unmount filesystems in the wrong order, leading to
build failures due to being unable to unmount for example /proc
whilst /proc/filesystems was still mounted. This change reverses
the order of umount commands back again before _umountall exits
so as to maintain the ordering.
py/mock/backend.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/py/mock/backend.py b/py/mock/backend.py
index eb97219..d604df6 100644
--- a/py/mock/backend.py
+++ b/py/mock/backend.py
@@ -638,6 +638,8 @@ class Root(object):
for cmd in umountCmds:
mock.util.do(cmd, raiseExc=0, shell=True)
+ # Reverse the order back again, ready for next time
+ umountCmds.reverse()

def _yum(self, cmd, returnOutput=0):

buildsys mailing list

Thread Tools

All times are GMT. The time now is 04:27 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org