Skip to content

Commit

Permalink
Create new FAT partitions as FAT32 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
spl237 committed May 10, 2019
1 parent c441d06 commit fcfda4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
piclone (0.13) unstable; urgency=medium

* Create new FATs as be FAT32 by default.

-- Simon Long <[email protected]> Fri, 10 May 2019 07:46:46 +0100

piclone (0.12) stretch; urgency=medium

* Set partition flags at end of copy rather than start
Expand Down
6 changes: 3 additions & 3 deletions src/piclone.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,15 @@ static gpointer backup_thread (gpointer data)
// create file systems
if (!strncmp (parts[p].ftype, "fat", 3))
{
if (uid) sprintf (buffer, "mkfs.fat -i %s %s%d", uuid, partition_name (dst_dev, dev), parts[p].pnum);
else sprintf (buffer, "mkfs.fat %s%d", partition_name (dst_dev, dev), parts[p].pnum);
if (uid) sprintf (buffer, "mkfs.fat -F 32 -i %s %s%d", uuid, partition_name (dst_dev, dev), parts[p].pnum);
else sprintf (buffer, "mkfs.fat -F 32 %s%d", partition_name (dst_dev, dev), parts[p].pnum);

if (sys_printf (buffer))
{
if (uid)
{
// second try just in case the only problem was a corrupt UUID
sprintf (buffer, "mkfs.fat %s%d", partition_name (dst_dev, dev), parts[p].pnum);
sprintf (buffer, "mkfs.fat -F 32 %s%d", partition_name (dst_dev, dev), parts[p].pnum);
if (sys_printf (buffer))
{
terminate_dialog (_("Could not create file system."));
Expand Down

0 comments on commit fcfda4c

Please sign in to comment.