daemon: Tolerate failure of blockdev --rereadpt after sfdisk.

See commit 840536ea5a
and commit 956fc5a3fe.
This commit is contained in:
Richard W.M. Jones
2010-11-02 20:33:06 +00:00
parent 47d1585961
commit 1937698c25

View File

@@ -101,8 +101,7 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors,
* other component. In any case, reread the partition table
* unconditionally here.
*/
if (do_blockdev_rereadpt (device) == -1)
return -1;
(void) command (NULL, NULL, "blockdev", "--rereadpt", NULL);
udev_settle ();