Update ppc64le isolabel to match x86_64 logic
It was substituting _ which didn't match what pungi uses for creating
the DVD. Make things consistent and use - as the replacement character.
(cherry picked from commit 372bef945f
)
Related: rhbz#1757338
This commit is contained in:
parent
13d1077604
commit
68d9b8b1f5
@ -6,11 +6,11 @@ GRUBDIR="boot/grub"
|
|||||||
STAGE2IMG="images/install.img"
|
STAGE2IMG="images/install.img"
|
||||||
LORAXDIR="usr/share/lorax/"
|
LORAXDIR="usr/share/lorax/"
|
||||||
|
|
||||||
## NOTE: yaboot freaks out and stops parsing its config if it sees a '\',
|
## Don't allow spaces or escape characters in the iso label
|
||||||
## so we can't use the udev escape sequences in the root arg.
|
def valid_label(ch):
|
||||||
## Instead we'll just replace any non-ASCII characters in the isolabel
|
return ch.isalnum() or ch == '_'
|
||||||
## with '_', which means we won't need any udev escapes.
|
|
||||||
isolabel = ''.join(ch if ch.isalnum() else '_' for ch in isolabel)
|
isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)
|
||||||
|
|
||||||
from os.path import basename
|
from os.path import basename
|
||||||
%>
|
%>
|
||||||
|
Loading…
Reference in New Issue
Block a user