python-blivet/fix-the-long-hostname.patch
yanan-rock 2af6029f85 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>
(cherry picked from commit 9a82e65e784173255f06d79b0b57d674c3727174)
2021-12-11 11:56:27 +08:00

13 lines
587 B
Diff

diff -Nur blivet-3.1.1/blivet/devicelibs/lvm.py blivet-3.1.1-old/blivet/devicelibs/lvm.py
--- blivet-3.1.1/blivet/devicelibs/lvm.py 2019-01-26 04:29:13.358210238 -0500
+++ blivet-3.1.1-old/blivet/devicelibs/lvm.py 2019-01-26 04:29:54.489210238 -0500
@@ -219,7 +219,7 @@
# minus the number of hyphens, and possibly minus up to another 8 characters
# 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) > 73:
return False
return True