From e1e10b4fb09ba372c04be7697c2104abdd76ec40 Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Fri, 18 Mar 2022 23:17:33 +0200 Subject: [PATCH] ALBS-226: Patch pungi/lorax for building AL9 - Lorax fails if a mounted on tmpfs image is busy (should use python function umount instead Linux utility umount directly) --- src/pylorax/imgutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.43.5