From ad80b3e889b3e40b7372a28c3d9e19e5513d6eee Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Sun, 30 Apr 2023 16:58:33 +0200 Subject: [PATCH] image/flash: give user output while copying image for shrinking --- image/flash.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/image/flash.py b/image/flash.py index 40b6ef8..f43a889 100644 --- a/image/flash.py +++ b/image/flash.py @@ -1,6 +1,7 @@ import shutil import os import click +import logging from typing import Optional @@ -49,7 +50,7 @@ def test_blockdev(path: str): def prepare_minimal_image(source_path: str, sector_size: int) -> str: minimal_image_dir = get_temp_dir(register_cleanup=True) minimal_image_path = os.path.join(minimal_image_dir, f'minimal-{os.path.basename(source_path)}') - + logging.info(f"Copying image {os.path.basename(source_path)} to {minimal_image_dir} for shrinking") shutil.copyfile(source_path, minimal_image_path) loop_device = losetup_rootfs_image(minimal_image_path, sector_size)