commit:     16cb2fcfa1fac91f877a5f41ddb97eee68208466
Author:     Yuta SATOH <nigoro.dev <AT> gmail <DOT> com>
AuthorDate: Fri Dec 29 01:42:12 2017 +0000
Commit:     Brian Dolbec <dolsen <AT> gentoo <DOT> org>
CommitDate: Fri Dec 29 02:05:15 2017 +0000
URL:        https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=16cb2fcf

stagebase.py: Update umount cmd, add env=self.env  # 363577

Bug url: https://bugs.gentoo.org/363577

 catalyst/base/stagebase.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 8f9a5dbd..32cc3df1 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1002,7 +1002,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
                                continue
 
                        try:
-                               cmd(['umount', target])
+                               cmd(['umount', target], env=self.env)
                        except CatalystError:
                                log.warning('First attempt to unmount failed: 
%s', target)
                                log.warning('Killing any pids still running in 
the chroot')
@@ -1010,7 +1010,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
                                self.kill_chroot_pids()
 
                                try:
-                                       cmd(['umount', target])
+                                       cmd(['umount', target], env=self.env)
                                except CatalystError:
                                        ouch = 1
                                        log.warning("Couldn't umount bind 
mount: %s", target)

Reply via email to