From 8dc2bb910840bc5b2769e1a821910353f11ccac5 Mon Sep 17 00:00:00 2001 From: yanan-rock Date: Fri, 10 Dec 2021 00:00:35 -0500 Subject: [PATCH] fix the failure of not a valid name for this device while the hostname is setted as 63 maxlen Signed-off-by: yanan-rock (cherry picked from commit 2b323bfc70474ed300b18794e13a7aa52df990a1) --- fix-the-long-hostname.patch | 2 +- python-blivet.spec | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fix-the-long-hostname.patch b/fix-the-long-hostname.patch index b1b3886..849501c 100644 --- a/fix-the-long-hostname.patch +++ b/fix-the-long-hostname.patch @@ -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 diff --git a/python-blivet.spec b/python-blivet.spec index 6b32ce4..ad5fc4e 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -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 - 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 - 3.2.2-7 - Type:bugfix - ID:NA -- Gitee