~blake-rouse/curtin/fix-1453869

Viewing all changes in revision 205.

  • Committer: Scott Moser
  • Date: 2015-05-15 16:44:54 UTC
  • Revision ID: smoser@ubuntu.com-20150515164454-0jocls0ye11ufr7v
add and use wipe_partitions, improve wipedev

instead of using sgdisk --zap-all and wipefs, use 'wipedev'.
For partitions, we can now use:
  wipe_partitions /dev/vdb 1

which will wipe the beginning of the partition without
triggering a REREADPT that wipefs would do.

I believe the wipefs call was the reason for the race condition
seen in LP: #1443542.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: