diff options
author | Michael E Brown <mebrown@michaels-house.net> | 2007-10-22 13:37:20 -0500 |
---|---|---|
committer | Michael E Brown <mebrown@michaels-house.net> | 2007-10-22 13:39:57 -0500 |
commit | c0be909e1e335b896022c80d64596c63a0b904a7 (patch) | |
tree | 18bbeb10138fca73fe60969f7b34702481a25129 | |
parent | e49567fcae88ddddf3843cffaf2b9f2c4840c377 (diff) | |
download | mock-c0be909e1e335b896022c80d64596c63a0b904a7.tar.gz mock-c0be909e1e335b896022c80d64596c63a0b904a7.tar.xz mock-c0be909e1e335b896022c80d64596c63a0b904a7.zip |
fix for /dev not unmounted when cleaning and host /dev is removed. BZ#250985
-rw-r--r-- | mock.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -193,6 +193,8 @@ class Root: self._umount('proc') if os.path.exists('%s/%s' % (self.rootdir, 'dev/pts')): self._umount('dev/pts') + if os.path.exists('%s/%s' % (self.rootdir, 'dev')): + self._umount('dev') if os.path.exists(self.basedir): cmd = '%s -rf %s' % (self.config['rm'], self.basedir) |