prevent creating pointless "tmpfs" dir
authorRick Farina (Zero_Chaos) <zerochaos@gentoo.org>
Thu, 1 Nov 2012 20:05:37 +0000 (16:05 -0400)
committerRick Farina (Zero_Chaos) <zerochaos@gentoo.org>
Thu, 1 Nov 2012 20:05:37 +0000 (16:05 -0400)
It seems we are automatically creating the src dir we are trying to mount,
although that whole idea is a little wierd, for now I'll just prevent it
from doing that when mounting a tmpfs.

modules/generic_stage_target.py

index 450d0fab87f6443b42e32635e99ea3b78dce2b3c..578c4af43d8b3d75ee93665ddd3597b33b5bd452 100644 (file)
@@ -895,7 +895,8 @@ class generic_stage_target(generic_target):
                                os.makedirs(self.settings["chroot_path"]+x,0755)
 
                        if not os.path.exists(self.mountmap[x]):
-                               os.makedirs(self.mountmap[x],0755)
+                               if not self.mountmap[x] == "tmpfs":
+                                       os.makedirs(self.mountmap[x],0755)
 
                        src=self.mountmap[x]
                        if self.settings.has_key("SNAPCACHE") and x == "/usr/portage":