aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2012-11-01 16:05:37 -0400
committerRick Farina (Zero_Chaos) <zerochaos@gentoo.org>2012-11-01 16:05:37 -0400
commit541150a7fd4f8f71adb9b015e9d41cfd97998203 (patch)
treebde4323bf6e1929c1fe1fbe94dd78192e1900c0d
parentfix make dist for python2 (diff)
downloadcatalyst-541150a7fd4f8f71adb9b015e9d41cfd97998203.tar.gz
catalyst-541150a7fd4f8f71adb9b015e9d41cfd97998203.tar.bz2
catalyst-541150a7fd4f8f71adb9b015e9d41cfd97998203.zip
prevent creating pointless "tmpfs" dir
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.
-rw-r--r--modules/generic_stage_target.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py
index 450d0fab..578c4af4 100644
--- a/modules/generic_stage_target.py
+++ b/modules/generic_stage_target.py
@@ -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":