Run partprobe after filesystem creation, to update UUID mapping
authorJamie Cameron <jcameron@webmin.com>
Mon, 17 Aug 2009 21:38:42 +0000 (14:38 -0700)
committerJamie Cameron <jcameron@webmin.com>
Mon, 17 Aug 2009 21:38:42 +0000 (14:38 -0700)
fdisk/fdisk-lib.pl

index dccee6e..6298746 100755 (executable)
@@ -717,6 +717,9 @@ elsif ($_[0] eq "jfs") {
 elsif ($_[0] eq "fatx") {
        $cmd = "mkfs -t $_[0] $_[1]";
        }
+if (&has_command("partprobe")) {
+       $cmd .= " ; partprobe";
+       }
 return $cmd;
 }