diff --git a/image-hd.c b/image-hd.c index 274c6ac..dee47f5 100644 --- a/image-hd.c +++ b/image-hd.c @@ -1055,6 +1055,7 @@ static int hdimage_setup(struct image *image, cfg_t *cfg) list_add_tail(&gpt_header->list, &image->partitions); list_add_tail(&gpt_array->list, &image->partitions); now = partition_end(gpt_array); + hd->file_size = now; /* Includes both the backup header and array. */ backup_size = GPT_SECTORS * 512;