!138 Fix intel biosraid can't get device name causing crashed
From: @sun_hai_10 Reviewed-by: @anonymous_z Signed-off-by: @anonymous_z
This commit is contained in:
commit
9df6f8a644
@ -0,0 +1,32 @@
|
|||||||
|
From 9d7d0428c81ce592c807f2cefcf7228a1b3d8789 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Yurii.Huang" <yurii.huang@dbappsecurity.com.cn>
|
||||||
|
Date: Wed, 21 Aug 2024 18:31:04 +0800
|
||||||
|
Subject: [PATCH] Fix intel biosraid can't get device name causing crashed
|
||||||
|
|
||||||
|
crashed with DiskDevice get members property
|
||||||
|
trace: 'DiskDevice' object has no attribute 'members'
|
||||||
|
changed: when ID_FS_TYPE is isw_raid_member use SYS_NAME to device name
|
||||||
|
|
||||||
|
Reference:https://github.com/storaged-project/blivet/commit/9d7d0428c81ce592c807f2cefcf7228a1b3d8789
|
||||||
|
Conflict:NA
|
||||||
|
---
|
||||||
|
blivet/udev.py | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/blivet/udev.py b/blivet/udev.py
|
||||||
|
index 70fc722f5..667e1f3c9 100644
|
||||||
|
--- a/blivet/udev.py
|
||||||
|
+++ b/blivet/udev.py
|
||||||
|
@@ -243,6 +243,10 @@ def device_get_name(udev_info):
|
||||||
|
elif device_get_format(udev_info) == "linux_raid_member":
|
||||||
|
# MD RAID member -> use SYS_NAME
|
||||||
|
name = udev_info["SYS_NAME"]
|
||||||
|
+ elif device_get_format(udev_info) == "isw_raid_member":
|
||||||
|
+ # intel software biosraid
|
||||||
|
+ # MD RAID member -> use SYS_NAME
|
||||||
|
+ name = udev_info["SYS_NAME"]
|
||||||
|
elif device_is_partition(udev_info):
|
||||||
|
# partition on RAID -> construct name from MD_DEVNAME + partition number
|
||||||
|
# for partitions on named RAID we want to use the raid name, not
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-blivet
|
Name: python-blivet
|
||||||
Version: 3.8.2
|
Version: 3.8.2
|
||||||
Release: 7
|
Release: 8
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Summary: A python module for system storage configuration
|
Summary: A python module for system storage configuration
|
||||||
License: LGPL-2.1-or-later
|
License: LGPL-2.1-or-later
|
||||||
@ -27,6 +27,7 @@ patch9002: Incomplete-Chineseization-of-disk-mount.patch
|
|||||||
patch6001: backport-Ignore-invalid-empty-UUIDs-for-NVMe-namespaces.patch
|
patch6001: backport-Ignore-invalid-empty-UUIDs-for-NVMe-namespaces.patch
|
||||||
patch9003: bugfix-fix-empty-UUIDs-for-NVMe-namespaces.patch
|
patch9003: bugfix-fix-empty-UUIDs-for-NVMe-namespaces.patch
|
||||||
patch9004: bugfix-revert-Prefer-UUID-for-fstab-spec-for-DM-devices-too.patch
|
patch9004: bugfix-revert-Prefer-UUID-for-fstab-spec-for-DM-devices-too.patch
|
||||||
|
patch6002: backport-Fix-intel-biosraid-cant-get-device-name-causing-crashed.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The python-blivet package is a python module for examining and modifying
|
The python-blivet package is a python module for examining and modifying
|
||||||
@ -129,6 +130,12 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install
|
|||||||
%doc README.md
|
%doc README.md
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 22 2024 sunhai<sunhai10@huawei.com> - 1:3.8.2-8
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Fix intel biosraid can't get device name causing crashed
|
||||||
|
|
||||||
* Sat Jun 29 2024 sunhai<sunhai10@huawei.com> - 1:3.8.2-7
|
* Sat Jun 29 2024 sunhai<sunhai10@huawei.com> - 1:3.8.2-7
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user