From 8b3a87cf8b1d8916a590295ae3cf9fdf347cefcb Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Wed, 13 Apr 2022 20:53:08 +0300 Subject: [PATCH 1/2] ALBS-173: Make first successful build - It's enable lazy unmounting bind mounts - The amount of retries is increased from 3 to 10 - The value of retry sleep is increased from 1.0 to 5 --- src/pylorax/imgutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index 6ebf2ed8..7d10f9e9 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -503,7 +503,7 @@ class DracutChroot(object): # cleanup bind mounts for _, d in self.bind: - umount(self.root + d) + umount(self.root + d, lazy=True, maxretry=10, retrysleep=5) def Run(self, args): runcmd(["dracut"] + args, root=self.root) From ed2f16834c56b21899c7e04a9419284ca60c541c Mon Sep 17 00:00:00 2001 From: soksanichenko Date: Wed, 13 Apr 2022 22:02:20 +0300 Subject: [PATCH 2/2] ALBS-173: Make first successful build - The amount of retries is increased from 3 to 10 - The value of retry sleep is increased from 1.0 to 5 --- src/pylorax/imgutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index 7d10f9e9..147a608c 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -503,7 +503,7 @@ class DracutChroot(object): # cleanup bind mounts for _, d in self.bind: - umount(self.root + d, lazy=True, maxretry=10, retrysleep=5) + umount(self.root + d, maxretry=10, retrysleep=5) def Run(self, args): runcmd(["dracut"] + args, root=self.root)