summaryrefslogtreecommitdiff
path: root/0001-disable-isolabel-character-change.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-19 03:21:34 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-19 03:21:34 +0000
commitc7be82c38ae67193c9a6e49fb16d5615ce3ce006 (patch)
tree5000ef910d51151ea9fc4e4f5440f2b7d8851593 /0001-disable-isolabel-character-change.patch
parentb5cb83d7ac779a40dc9473ab058aed655abb2cf9 (diff)
automatic import of loraxopeneuler20.03
Diffstat (limited to '0001-disable-isolabel-character-change.patch')
-rw-r--r--0001-disable-isolabel-character-change.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/0001-disable-isolabel-character-change.patch b/0001-disable-isolabel-character-change.patch
new file mode 100644
index 0000000..f3c6926
--- /dev/null
+++ b/0001-disable-isolabel-character-change.patch
@@ -0,0 +1,49 @@
+From aae1b6a8399062f6aacdad5df474474ef2185f40 Mon Sep 17 00:00:00 2001
+From: sunguoshuai <sunguoshuai@huawei.com>
+Date: Fri, 11 Jan 2019 03:17:16 -0500
+Subject: [PATCH] disable isolabel character change
+
+---
+ share/templates.d/99-generic/live/x86.tmpl | 6 +++---
+ share/templates.d/99-generic/x86.tmpl | 6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/share/templates.d/99-generic/live/x86.tmpl b/share/templates.d/99-generic/live/x86.tmpl
+index 9290dbb..ba0ffdc 100644
+--- a/share/templates.d/99-generic/live/x86.tmpl
++++ b/share/templates.d/99-generic/live/x86.tmpl
+@@ -9,10 +9,10 @@ LIVEDIR="LiveOS"
+ LORAXDIR="usr/share/lorax/"
+
+ ## Don't allow spaces or escape characters in the iso label
+-def valid_label(ch):
+- return ch.isalnum() or ch == '_'
++#def valid_label(ch):
++# return ch.isalnum() or ch == '_'
+
+-isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
++#isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
+
+ import os
+ from os.path import basename
+diff --git a/share/templates.d/99-generic/x86.tmpl b/share/templates.d/99-generic/x86.tmpl
+index 1b0a940..aff0255 100644
+--- a/share/templates.d/99-generic/x86.tmpl
++++ b/share/templates.d/99-generic/x86.tmpl
+@@ -9,10 +9,10 @@ KERNELDIR=PXEBOOTDIR
+ LORAXDIR="usr/share/lorax/"
+
+ ## Don't allow spaces or escape characters in the iso label
+-def valid_label(ch):
+- return ch.isalnum() or ch == '_'
++#def valid_label(ch):
++# return ch.isalnum() or ch == '_'
+
+-isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
++#isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
+
+ import os
+ from os.path import basename
+--
+1.8.3.1
+