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

@ -244,7 +244,7 @@ print(shutil.which('chroot'))
generator.prepare(kernel_bootstrap=True, target_size=size)
image_path = os.path.join(args.tmpdir, os.path.relpath(generator.tmp_dir, args.tmpdir))
print("Please:")
print(f" 1. Take {image_path}/disk.img and write it to a boot drive and then boot it.")
print(f" 1. Take {image_path}.img and write it to a boot drive and then boot it.")
else:
if args.kernel:
@ -268,7 +268,7 @@ print(shutil.which('chroot'))
'-m', str(args.qemu_ram) + 'M',
'-smp', str(args.cores),
'-no-reboot',
'-drive', 'file=' + os.path.join(generator.tmp_dir, 'disk.img') + ',format=raw'
'-drive', 'file=' + generator.tmp_dir + '.img' + ',format=raw'
]
if tmpdir.get_disk("external") is not None:
arg_list += [