Skip to content

Commit

Permalink
Fix disk full error during flashing
Browse files Browse the repository at this point in the history
Tracked-On: OAM-105154
Signed-off-by: blackdobb <[email protected]>
  • Loading branch information
xinxin-wan authored and sysopenci committed Dec 12, 2022
1 parent 772c6a4 commit 46c0a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guest/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static int create_vusb(GKeyFile *gkf)
}

snprintf(cmd, MAX_CMDLINE_LEN, "dd if=/dev/zero of="VUSB_FLASH_DISK" bs=%ld count=%ld",
DD_BS, (total_images_size + DD_BS - 1)/DD_BS);
DD_BS, (total_images_size + DD_BS + 2 GIGABYTE - 1)/DD_BS);
printf("%s\n", cmd);
if (system(cmd))
return -1;
Expand Down

0 comments on commit 46c0a28

Please sign in to comment.