image-vfat: use new helper to initialize the image

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
This commit is contained in:
Michael Olbrich 2022-03-25 09:40:42 +01:00
parent 933143a77f
commit 59bf9f1823

View File

@ -34,8 +34,7 @@ static int vfat_generate(struct image *image)
else
label = "";
ret = systemp(image, "%s if=/dev/zero of=\"%s\" seek=%lld count=0 bs=1 2>/dev/null",
get_opt("dd"), imageoutfile(image), image->size);
ret = prepare_image(image, image->size);
if (ret)
return ret;