@@ -29,6 +29,7 @@ def __init__(self, arch, external_sources, early_preseed, repo_path):
2929 self .external_sources = external_sources
3030 self .repo_path = repo_path
3131 self .source_manifest = self .get_source_manifest (not self .external_sources )
32+ self .early_source_manifest = self .get_source_manifest (True )
3233 self .target_dir = None
3334 self .external_dir = None
3435
@@ -159,9 +160,10 @@ def create_fiwix_file_list(self):
159160
160161 def distfiles (self ):
161162 """Copy in distfiles"""
162- def copy_no_network_distfiles (out ):
163+ def copy_no_network_distfiles (out , early ):
163164 # Note that "no disk" implies "no network" for kernel bootstrap mode
164- for file in self .source_manifest :
165+ manifest = self .early_source_manifest if early else self .source_manifest
166+ for file in manifest :
165167 file = file [3 ].strip ()
166168 shutil .copy2 (os .path .join (self .distfiles_dir , file ),
167169 os .path .join (out , file ))
@@ -171,13 +173,13 @@ def copy_no_network_distfiles(out):
171173
172174 if early_distfile_dir != main_distfile_dir :
173175 os .makedirs (early_distfile_dir , exist_ok = True )
174- copy_no_network_distfiles (early_distfile_dir )
176+ copy_no_network_distfiles (early_distfile_dir , True )
175177
176178 if self .external_sources :
177179 shutil .copytree (self .distfiles_dir , main_distfile_dir , dirs_exist_ok = True )
178180 else :
179181 os .mkdir (main_distfile_dir )
180- copy_no_network_distfiles (main_distfile_dir )
182+ copy_no_network_distfiles (main_distfile_dir , False )
181183
182184 @staticmethod
183185 def output_dir (srcfs_file , dirpath ):
0 commit comments