mozilla-b2g/B2G — pull request #123 by tdz (2012-09-26 14:25:57+00:00)
Title: Workaround broken 'fastboot erase' on PandaBoard

Fastboot's erase command doesn't work with PandaBoards. To clean up the data on
the cache and userdata partitions, rm is called before beginning the flash
procedure.

The directory /data/local has concurrent writers. To delete the directory, we
continuously remove the directory until all writers have finished their work.