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)
This commit is contained in:
soksanichenko 2022-03-18 23:17:33 +02:00
parent b3a15208ce
commit e1e10b4fb0
1 changed files with 3 additions and 3 deletions

View File

@ -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)