!56 [sync] PR-54: fix the failure of not a valid name for this device while the hostname is setted as 63 maxlen

Merge pull request !56 from openeuler-sync-bot/sync-pr54-master-to-openEuler-22.03-LTS-Next
This commit is contained in:
openeuler-ci-bot 2021-12-11 07:01:16 +00:00 committed by Gitee
commit 2b6b8bdc66
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.3.2
Release: 3
Release: 4
Epoch: 1
Summary: A python module for system storage configuration
License: LGPLv2+
@ -124,6 +124,12 @@ make PYTHON=%{__python2} DESTDIR=%{buildroot} install
%doc README.md
%changelog
* Fri Dec 10 2021 yanan <yanan@huawei.com> - 3.3.2-4
- 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.3.2-3
- Type:bugfix
- ID:NA