From bd20a1123eba1669535749c82f065e53e73c6b17 Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Mon, 14 Feb 2022 18:53:36 +0100 Subject: [PATCH] cmd_image_build(): always create new `-full.img` file --- image.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/image.py b/image.py index 3095392..ef7936e 100644 --- a/image.py +++ b/image.py @@ -369,10 +369,9 @@ def cmd_build(profile_name: str = None, build_pkgs: bool = True, block_target: s image_path = block_target or get_image_path(device, flavour) os.makedirs(os.path.dirname(image_path), exist_ok=True) - new_image = not os.path.exists(image_path) - if new_image: - logging.info(f'Creating new file at {image_path}') - create_img_file(image_path, f"{rootfs_size_gb}G") + + logging.info(f'Creating new file at {image_path}') + create_img_file(image_path, f"{rootfs_size_gb}G") loop_device = losetup_rootfs_image(image_path, sector_size)