zero the partiiton before writing to it.

Change-Id: I4717fd45c822a2026f907914c900cf8c60d8a48d
This commit is contained in:
Koushik Dutta 2011-10-22 22:34:58 -07:00
parent 2e85422f89
commit 17fd32d0a2

View File

@ -599,6 +599,7 @@ int cmd_mmc_restore_raw_partition(const char *partition, const char *filename)
return mmc_raw_copy(p, filename);
}
else {
mmc_raw_dump_internal("/dev/zero", partition);
return mmc_raw_dump_internal(filename, partition);
}
}