commit: 8d193df8231b9ce4737614ba039008c40a73b6cf
parent faad907fba73a3d081b905d380e96b9fe3c1030b
Author: Gábor Stefanik <netrolller.3d@gmail.com>
Date: Sun, 17 Dec 2023 22:22:13 +0100
Fix printed image paths for bare-metal bootstrap
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/rootfs.py b/rootfs.py
@@ -236,13 +236,15 @@ print(shutil.which('chroot'))
elif args.bare_metal:
if args.kernel:
generator.prepare(using_kernel=True, target_size=size)
+ image_path = os.path.join(args.tmpdir, os.path.relpath(generator.tmp_dir, args.tmpdir))
print("Please:")
- print(" 1. Take tmp/initramfs and your kernel, boot using this.")
- print(" 2. Take tmp/disk.img and put this on a writable storage medium.")
+ print(f" 1. Take {image_path}/initramfs and your kernel, boot using this.")
+ print(f" 2. Take {image_path}/disk.img and put this on a writable storage medium.")
else:
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(" 1. Take tmp/disk.img and write it to a boot drive and then boot it.")
+ print(f" 1. Take {image_path}/disk.img and write it to a boot drive and then boot it.")
else:
if args.kernel: