cmd_image_build(): always create new -full.img
file
This commit is contained in:
parent
3347b33e50
commit
bd20a1123e
1 changed files with 3 additions and 4 deletions
3
image.py
3
image.py
|
@ -369,8 +369,7 @@ 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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue