Lines 184-189
class generic_stage_target(generic_target):
Link Here
|
184 |
"/usr/portage/distfiles":self.settings["distdir"],"/var/tmp/portage":"tmpfs"} |
184 |
"/usr/portage/distfiles":self.settings["distdir"],"/var/tmp/portage":"tmpfs"} |
185 |
if os.uname()[0] == "Linux": |
185 |
if os.uname()[0] == "Linux": |
186 |
self.mounts.append("/dev/pts") |
186 |
self.mounts.append("/dev/pts") |
|
|
187 |
self.mounts.append('/run/shm') |
188 |
self.mountmap['/run/shm'] = 'tmpfs' |
187 |
|
189 |
|
188 |
self.set_mounts() |
190 |
self.set_mounts() |
189 |
|
191 |
|
Lines 895-900
class generic_stage_target(generic_target):
Link Here
|
895 |
|
897 |
|
896 |
def bind(self): |
898 |
def bind(self): |
897 |
for x in self.mounts: |
899 |
for x in self.mounts: |
|
|
900 |
print('mounting {}'.format(x)) |
898 |
if not os.path.exists(self.settings["chroot_path"]+x): |
901 |
if not os.path.exists(self.settings["chroot_path"]+x): |
899 |
os.makedirs(self.settings["chroot_path"]+x,0755) |
902 |
os.makedirs(self.settings["chroot_path"]+x,0755) |
900 |
|
903 |
|
Lines 914-920
class generic_stage_target(generic_target):
Link Here
|
914 |
self.settings["chroot_path"]+x) |
917 |
self.settings["chroot_path"]+x) |
915 |
else: |
918 |
else: |
916 |
if src == "tmpfs": |
919 |
if src == "tmpfs": |
917 |
if "var_tmpfs_portage" in self.settings: |
920 |
if x.endswith('shm'): |
|
|
921 |
retval = os.system( |
922 |
'mount -t tmpfs none {}{}'.format( |
923 |
self.settings['chroot_path'], |
924 |
x)) |
925 |
elif "var_tmpfs_portage" in self.settings: |
918 |
retval=os.system("mount -t tmpfs -o size="+\ |
926 |
retval=os.system("mount -t tmpfs -o size="+\ |
919 |
self.settings["var_tmpfs_portage"]+"G "+src+" "+\ |
927 |
self.settings["var_tmpfs_portage"]+"G "+src+" "+\ |
920 |
self.settings["chroot_path"]+x) |
928 |
self.settings["chroot_path"]+x) |
921 |
- |
|
|