Pass -F to mkfs.ext[234] to allow creating a filesystem on the whole disk
authorDavid Zeuthen <davidz@redhat.com>
Tue, 27 Oct 2009 16:16:55 +0000 (12:16 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Tue, 27 Oct 2009 16:16:55 +0000 (12:16 -0400)
src/job-mkfs.c

index 58e82b1..8549aa6 100644 (file)
@@ -128,6 +128,7 @@ main (int argc, char **argv)
                 s = g_string_new ("mkfs.");
                 g_string_append (s, fstype);
                 for (n = 0; options[n] != NULL; n++) {
+                        g_string_append (s, " -F ");
                         if (g_str_has_prefix (options[n], "label=")) {
                                 label = strdup (options[n] + sizeof ("label=") - 1);
                                 if (!validate_and_escape_label (&label, 16)) {