[elbe-devel] [PATCH 1/1] efilesystem: Sleep after umounting /dev/pts and before umounting /dev

Torben Hohn torben.hohn at linutronix.de
Tue Jan 11 09:59:18 CET 2022


Umounting /dev fails reproducibly on the lxhb workstation.

This seem to be due to asynchronous umount behaviour. The umount of
/dev/pts is not complete, when /dev shall be umounted.

Add sleep(500ms).

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/efilesystem.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elbepack/efilesystem.py b/elbepack/efilesystem.py
index 496a9df52..f99d7f921 100644
--- a/elbepack/efilesystem.py
+++ b/elbepack/efilesystem.py
@@ -379,6 +379,7 @@ class ChRootFilesystem(ElbeFilesystem):
         self._umount("proc")
         self._umount("sys")
         self._umount("dev/pts")
+        time.sleep(0.5)
         self._umount("dev")
 
     def leave_chroot(self):
-- 
2.20.1



More information about the elbe-devel mailing list