Move kernel-bootstrap source image out of the directory it's generated from

This way, an incomplete version of the image itself won't get included
in srcfs anymore.
This commit is contained in:
Gábor Stefanik 2023-12-17 23:27:02 +01:00
parent 3305f2a41b
commit 55d3c36e09
2 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ class Generator():
shutil.copytree(self.repo_path, repo_dir)
if kernel_bootstrap:
self.create_builder_hex0_disk_image(os.path.join(self.tmp_dir, 'disk.img'), target_size)
self.create_builder_hex0_disk_image(self.tmp_dir + '.img', target_size)
if kernel_bootstrap and (self.external_sources or self.repo_path):
self.tmpdir.umount_disk('external')