From 1e27149242f1cc67661d252891d74e4e205683bb Mon Sep 17 00:00:00 2001
From: Sebastien Luttringer <sebastien.luttringer@smartjog.com>
Date: Fri, 18 Nov 2011 13:07:36 +0100
Subject: [PATCH] also mount /dev/shm inside chroot

---
 installsystems/tools.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/installsystems/tools.py b/installsystems/tools.py
index ebcf11a..00ea201 100644
--- a/installsystems/tools.py
+++ b/installsystems/tools.py
@@ -358,9 +358,9 @@ def prepare_chroot(path, mount=True):
     Preate a chroot environment by mouting /{proc,sys,dev,dev/pts}
     and try to guess dest os to avoid daemon lauching
     '''
-    # try to mount /proc /sys /dev
+    # try to mount /proc /sys /dev /dev/pts /dev/shm
     if mount:
-        mps = ("proc", "sys", "dev", "dev/pts")
+        mps = ("proc", "sys", "dev", "dev/pts", "dev/shm")
         arrow("Mouting filesystems")
         for mp in mps:
             origin =  "/%s" % mp
@@ -419,7 +419,7 @@ def unprepare_chroot(path, mount=True):
             except: pass
     # unmounting
     if mount:
-        mps = ("proc", "sys", "dev", "dev/pts")
+        mps = ("proc", "sys", "dev", "dev/pts", "dev/shm")
         arrow("Unmouting filesystems")
         for mp in reversed(mps):
             target = os.path.join(path, mp)
-- 
GitLab