Use erase_raw_partition for unknown named partitions

Change-Id: I84014a851ebdfb2c228cff43879580a761c22708
This commit is contained in:
Christopher Lais 2011-01-16 01:38:47 -06:00
parent e06e539196
commit a25cf5ec4f

View File

@ -418,7 +418,7 @@ int format_unknown_device(const char *device, const char* path, const char *fs_t
// device may simply be a name, like "system"
if (device[0] != '/')
return erase_partition(device, fs_type);
return erase_raw_partition(device);
// if this is SDEXT:, don't worry about it if it does not exist.
if (0 == strcmp(path, "/sd-ext"))