- Truncate a volume ID to 32 bytes
- Add new architecture `x86_64_v2`
This commit is contained in:
parent
72635cf5c1
commit
cb53de3c46
@ -34,6 +34,8 @@ arches = {
|
|||||||
"x86_64": "athlon",
|
"x86_64": "athlon",
|
||||||
"amd64": "x86_64",
|
"amd64": "x86_64",
|
||||||
"ia32e": "x86_64",
|
"ia32e": "x86_64",
|
||||||
|
# x86-64-v2
|
||||||
|
"x86_64_v2": "noarch",
|
||||||
# ppc64le
|
# ppc64le
|
||||||
"ppc64le": "noarch",
|
"ppc64le": "noarch",
|
||||||
# ppc
|
# ppc
|
||||||
|
@ -487,10 +487,7 @@ def get_volid(compose, arch, variant=None, disc_type=False, formats=None, **kwar
|
|||||||
tried.add(volid)
|
tried.add(volid)
|
||||||
|
|
||||||
if volid and len(volid) > 32:
|
if volid and len(volid) > 32:
|
||||||
raise ValueError(
|
volid = volid[:32]
|
||||||
"Could not create volume ID longer than 32 bytes, options are %r",
|
|
||||||
sorted(tried, key=len),
|
|
||||||
)
|
|
||||||
|
|
||||||
if compose.conf["restricted_volid"]:
|
if compose.conf["restricted_volid"]:
|
||||||
# Replace all non-alphanumeric characters and non-underscores) with
|
# Replace all non-alphanumeric characters and non-underscores) with
|
||||||
|
Loading…
Reference in New Issue
Block a user