DistroBaker 2fccc8
commit d58ebcc32b583371dd73ab7f4c7be5191674ca62
DistroBaker 2fccc8
Author: Tomas Bzatek <tbzatek@redhat.com>
DistroBaker 2fccc8
Date:   Wed Mar 17 18:52:22 2021 +0100
DistroBaker 2fccc8
DistroBaker 2fccc8
    udiskslinuxblock: Re-read partition table after creating FAT filesystem
DistroBaker 2fccc8
    
DistroBaker 2fccc8
    Might not be needed after reverting mkfs.vfat behaviour back
DistroBaker 2fccc8
    to the legacy way, added just as a precautionary measure.
DistroBaker 2fccc8
DistroBaker 2fccc8
diff --git a/src/udiskslinuxblock.c b/src/udiskslinuxblock.c
DistroBaker 2fccc8
index 901426ad..69161b61 100644
DistroBaker 2fccc8
--- a/src/udiskslinuxblock.c
DistroBaker 2fccc8
+++ b/src/udiskslinuxblock.c
DistroBaker 2fccc8
@@ -2913,7 +2913,9 @@ static inline gboolean
DistroBaker 2fccc8
 need_partprobe_after_mkfs (const gchar *fs_type)
DistroBaker 2fccc8
 {
DistroBaker 2fccc8
   /* udftools makes fake MBR since the 2.0 release */
DistroBaker 2fccc8
-  return (g_strcmp0 (fs_type, "udf") == 0);
DistroBaker 2fccc8
+  /* dosfstools makes fake MBR since the 4.2 release */
DistroBaker 2fccc8
+  return (g_strcmp0 (fs_type, "udf") == 0 ||
DistroBaker 2fccc8
+          g_strcmp0 (fs_type, "vfat") == 0);
DistroBaker 2fccc8
 }
DistroBaker 2fccc8
 
DistroBaker 2fccc8
 void