Skip to content

Commit

Permalink
aarch64: Escape volid before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
bcl committed Feb 1, 2024
1 parent 4f3eebf commit 0c65fd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions share/templates.d/99-generic/aarch64.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ KERNELDIR=PXEBOOTDIR
STAGE2IMG="images/install.img"
LORAXDIR="usr/share/lorax/"

## Don't allow spaces or escape characters in the iso label
def valid_label(ch):
return ch.isalnum() or ch == '_'

isolabel = ''.join(ch if valid_label(ch) else '-' for ch in isolabel)

import os
from os.path import basename
from pylorax.sysutils import joinpaths
Expand Down

0 comments on commit 0c65fd4

Please sign in to comment.