Blame SOURCES/0004-parted-Reset-the-filesystem-type-when-changing-the-i.patch

04e2fe
From 9b0a83a747b28bd1b778bdd32616e6f7ea88c84d Mon Sep 17 00:00:00 2001
04e2fe
From: "Brian C. Lane" <bcl@redhat.com>
04e2fe
Date: Fri, 13 May 2022 10:02:06 -0700
04e2fe
Subject: [PATCH 4/5] parted: Reset the filesystem type when changing the
04e2fe
 id/uuid
04e2fe
04e2fe
Without this the print command keeps showing the type selected with
04e2fe
mkpart, which doesn't match the id/uuid set by the user. So rescan the
04e2fe
partition for a filesystem.
04e2fe
---
04e2fe
 parted/parted.c | 3 +++
04e2fe
 1 file changed, 3 insertions(+)
04e2fe
04e2fe
diff --git a/parted/parted.c b/parted/parted.c
04e2fe
index b8a4acf..96da30d 100644
04e2fe
--- a/parted/parted.c
04e2fe
+++ b/parted/parted.c
04e2fe
@@ -991,6 +991,9 @@ do_type (PedDevice** dev, PedDisk** diskp)
04e2fe
 
04e2fe
         free (input);
04e2fe
 
04e2fe
+        // Reset the fs_type based on the filesystem, if it exists
04e2fe
+        part->fs_type = ped_file_system_probe (&part->geom);
04e2fe
+
04e2fe
         if (!ped_disk_commit (*diskp))
04e2fe
                 goto error;
04e2fe
         return 1;
04e2fe
-- 
04e2fe
2.35.3
04e2fe