fix the failure of not a valid name for this device while the hostname is setted as 63 maxlen

Signed-off-by: yanan-rock <yanan@huawei.com>
This commit is contained in:
yanan-rock 2021-12-10 00:00:35 -05:00
parent 13f4e9350f
commit 2b323bfc70
2 changed files with 8 additions and 2 deletions

View File

@ -6,7 +6,7 @@ diff -Nur blivet-3.1.1/blivet/devicelibs/lvm.py blivet-3.1.1-old/blivet/deviceli
# in some unspecified set of situations. Instead of figuring all of that out,
# no one gets a vg or lv name longer than, let's say, 55.
- if len(name) > 55:
+ if len(name) > 71:
+ if len(name) > 73:
return False
return True

View File

@ -3,7 +3,7 @@
Name: python-blivet
Version: 3.2.2
Release: 7
Release: 8
Epoch: 1
Summary: A python module for system storage configuration
License: LGPLv2+
@ -127,6 +127,12 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install
%doc README
%changelog
* Fri Dec 10 2021 yanan <yanan@huawei.com> - 3.2.2-8
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix the failure of not a valid name for this device while the hostname is setted as 63 maxlen
* Sat Oct 30 2021 yanan <yanan@huawei.com> - 3.2.2-7
- Type:bugfix
- ID:NA