Gentoo Archives: gentoo-commits

From: Richard Farina <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/catalyst:master commit in: modules/
Date: Thu, 01 Nov 2012 20:04:55
Message-Id: 1351800337.541150a7fd4f8f71adb9b015e9d41cfd97998203.zerochaos@gentoo
1 commit: 541150a7fd4f8f71adb9b015e9d41cfd97998203
2 Author: Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 1 20:05:37 2012 +0000
4 Commit: Richard Farina <zerochaos <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 1 20:05:37 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=541150a7
7
8 prevent creating pointless "tmpfs" dir
9
10 It seems we are automatically creating the src dir we are trying to mount,
11 although that whole idea is a little wierd, for now I'll just prevent it
12 from doing that when mounting a tmpfs.
13
14 ---
15 modules/generic_stage_target.py | 3 ++-
16 1 files changed, 2 insertions(+), 1 deletions(-)
17
18 diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py
19 index 450d0fa..578c4af 100644
20 --- a/modules/generic_stage_target.py
21 +++ b/modules/generic_stage_target.py
22 @@ -895,7 +895,8 @@ class generic_stage_target(generic_target):
23 os.makedirs(self.settings["chroot_path"]+x,0755)
24
25 if not os.path.exists(self.mountmap[x]):
26 - os.makedirs(self.mountmap[x],0755)
27 + if not self.mountmap[x] == "tmpfs":
28 + os.makedirs(self.mountmap[x],0755)
29
30 src=self.mountmap[x]
31 if self.settings.has_key("SNAPCACHE") and x == "/usr/portage":