From 46c0a28bae5233224f6bf8e64efdab5a309d9120 Mon Sep 17 00:00:00 2001 From: blackdobb Date: Wed, 7 Dec 2022 14:48:28 +0800 Subject: [PATCH] Fix disk full error during flashing Tracked-On: OAM-105154 Signed-off-by: blackdobb --- src/guest/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guest/flash.c b/src/guest/flash.c index e1874eb..bc53f4c 100644 --- a/src/guest/flash.c +++ b/src/guest/flash.c @@ -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;