Compare commits

...

2 Commits
rawhide ... f36

Author SHA1 Message Date
Vojtech Trefny d4c40b36b5 New version 3.4.4
- Use LVM PV format current_size in LVMVolumeGroupDevice._remove
- Correctly set vg_name after adding/removing a PV from a VG
- Do not crash when changing disklabel on disks with active devices
- ActionDestroyDevice should not obsolete ActionRemoveMember
- Correctly set compression and deduplication for existing VDO pools
- Correctly cancel configure actions in cancel()
- Set partition flags after setting parted filesystem (#2033875)
2022-05-16 09:29:56 +02:00
Jan Pokorny d504075b7f Set partition flags after setting parted fs (#2033875) 2022-02-15 14:09:49 +01:00
4 changed files with 51 additions and 3 deletions

2
.gitignore vendored
View File

@ -141,3 +141,5 @@
/blivet-3.4.2-tests.tar.gz
/blivet-3.4.3-tests.tar.gz
/blivet-3.4.3.tar.gz
/blivet-3.4.4-tests.tar.gz
/blivet-3.4.4.tar.gz

View File

@ -0,0 +1,34 @@
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()

View File

@ -19,7 +19,7 @@
Summary: A python module for system storage configuration
Name: python-blivet
Url: https://storageapis.wordpress.com/projects/blivet
Version: 3.4.3
Version: 3.4.4
#%%global prerelease .b2
# prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2
@ -196,6 +196,18 @@ configuration.
%endif
%changelog
* Mon May 16 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.4.4-1
- Use LVM PV format current_size in LVMVolumeGroupDevice._remove (vtrefny)
- Correctly set vg_name after adding/removing a PV from a VG (vtrefny)
- Do not crash when changing disklabel on disks with active devices (vtrefny)
- ActionDestroyDevice should not obsolete ActionRemoveMember (vtrefny)
- Correctly set compression and deduplication for existing VDO pools (vtrefny)
- Correctly cancel configure actions in cancel() (vtrefny)
- Set partition flags after setting parted filesystem (#2033875) (vtrefny)
* Tue Feb 15 2022 Jan Pokorny <japokorn@redhat.com> - 3.4.3-2
- Set partition flags after setting parted filesystem (#2033875) (vtrefny)
* Tue Feb 01 2022 Vojtech Trefny <vtrefny@redhat.com> - 3.4.3-1
- Make sure we mount the top level subvolume when mounting btrfs (vtrefny)
- README: Fix API documentation link (vtrefny)

View File

@ -1,2 +1,2 @@
SHA512 (blivet-3.4.3-tests.tar.gz) = e984fb86c6e586cbb09160eb7f5da02a6f53c540062f1a519d989f7e5f8430ef82bc83552dba5525e900676e1b9e1ab9321010758af4407354235074abf70716
SHA512 (blivet-3.4.3.tar.gz) = 0d48ce69bb74030921989470bb2220baed6f60a369d12c6fad8d2a027a7093e6b56e603d53174d47c702234bacd9141e2c9e2f2f389349b825dcad055260a09d
SHA512 (blivet-3.4.4-tests.tar.gz) = cb73d3a9361275d3f9a09b8dd3f93f89f9fe1400e7a4eeabe91853329e774491a4371e5b653bce48e49ed8dd0708a51f22890e98adbfb92a57d72eb598dd84b8
SHA512 (blivet-3.4.4.tar.gz) = 3a1e4fd6d5f5ca7386adc8af81c54f2098acefa70ff4d05be4bd293bab6aee8732cb365e272f07c6d19da7c756728981b1f2cfbee77ce6fc2ade6707808e51ee