From 2af6029f85ab0307b47a080bcd9ce03e93f3883f Mon Sep 17 00:00:00 2001 From: yanan-rock Date: Mon, 29 Nov 2021 01:05: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 9a82e65e784173255f06d79b0b57d674c3727174) --- 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 81c8453..c898e14 100644 --- a/python-blivet.spec +++ b/python-blivet.spec @@ -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 - 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 - 3.3.2-3 - Type:bugfix - ID:NA -- Gitee