diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index d713e4c1..6ebf2ed8 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -498,12 +498,12 @@ class DracutChroot(object): return self def __exit__(self, exc_type, exc_value, tracebk): - runcmd(["umount", self.root + "/proc" ]) - runcmd(["umount", self.root + "/dev" ]) + umount(self.root + '/proc') + umount(self.root + '/dev') # cleanup bind mounts for _, d in self.bind: - runcmd(["umount", self.root + d ]) + umount(self.root + d) def Run(self, args): runcmd(["dracut"] + args, root=self.root)