return -1;
}
- udev_settle ();
-
/* sfdisk sometimes fails on fast machines with:
*
* Re-reading the partition table ...
* other component. In any case, reread the partition table
* unconditionally here.
*/
- return do_blockdev_rereadpt (device);
+ if (do_blockdev_rereadpt (device) == -1)
+ return -1;
+
+ udev_settle ();
+
+ return 0;
}
int