mirror of
https://github.com/pengutronix/genimage.git
synced 2024-11-23 01:34:12 +08:00
image-vfat: use new helper to initialize the image
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
This commit is contained in:
parent
933143a77f
commit
59bf9f1823
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user