Fix creating NTFS on raw devices
authorMartin Pitt <martin.pitt@ubuntu.com>
Tue, 28 Sep 2010 07:53:20 +0000 (09:53 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 28 Sep 2010 07:54:20 +0000 (09:54 +0200)
Similarly to the other file systems, add a -F option to mkntfs, to avoid
failing on "this is not a partition blabla".

src/helpers/job-mkfs.c

index 52db903..2ab7400 100644 (file)
@@ -277,7 +277,7 @@ main (int argc,
       /* skip zeroing (we do that ourselves) and bad sector checking (will 
        * eventually be handled on a higher level)
        */
-      s = g_string_new ("mkntfs -f");
+      s = g_string_new ("mkntfs -f -F");
       for (n = 0; options[n] != NULL; n++)
         {
           if (g_str_has_prefix (options[n], "label="))