35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
|
From 92b18b7d7e05f2bde979f2e85888b820000d8214 Mon Sep 17 00:00:00 2001
|
||
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
||
|
Date: Mon, 14 Feb 2022 15:57:51 +0100
|
||
|
Subject: [PATCH] Set partition flags after setting parted filesystem
|
||
|
(#2033875)
|
||
|
|
||
|
With latest parted setting the parted filesystem property changes
|
||
|
the GPT type set by the flags to the default type for the fs, e.g.
|
||
|
to "Microsoft basic data" for FAT instead of "EFI System" which
|
||
|
is set with the boot flag on GPT.
|
||
|
---
|
||
|
blivet/deviceaction.py | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/blivet/deviceaction.py b/blivet/deviceaction.py
|
||
|
index 15c3bc622..f7e99e9d1 100644
|
||
|
--- a/blivet/deviceaction.py
|
||
|
+++ b/blivet/deviceaction.py
|
||
|
@@ -630,12 +630,12 @@ def execute(self, callbacks=None):
|
||
|
continue
|
||
|
self.device.unset_flag(flag)
|
||
|
|
||
|
- if self.format.parted_flag is not None:
|
||
|
- self.device.set_flag(self.format.parted_flag)
|
||
|
-
|
||
|
if self.format.parted_system is not None:
|
||
|
self.device.parted_partition.system = self.format.parted_system
|
||
|
|
||
|
+ if self.format.parted_flag is not None:
|
||
|
+ self.device.set_flag(self.format.parted_flag)
|
||
|
+
|
||
|
self.device.disk.format.commit_to_disk()
|
||
|
udev.settle()
|
||
|
|