daemon: In sfdisk call blockdev --rereadpt with device name.

This commit is contained in:
Richard W.M. Jones
2010-11-23 18:41:59 +00:00
parent 8d3e97679a
commit b9bd24b943

View File

@@ -101,7 +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.
*/
(void) command (NULL, NULL, "blockdev", "--rereadpt", NULL);
(void) command (NULL, NULL, "blockdev", "--rereadpt", device, NULL);
udev_settle ();