diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index ed58886..acfe2fc 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -990,7 +990,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') @@ -998,7 +998,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)