mirror of
https://github.com/ipxe/ipxe.git
synced 2026-05-04 12:01:25 +02:00
[cloud] Mark imported images as supporting NVMe for Alibaba Cloud
Alibaba Cloud will refuse to use images for some instance types unless the image is explicitly marked as supporting NVMe disks. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
2360ec2a79
commit
ea24689629
@ -492,12 +492,17 @@ def import_image(clients, image, bucket):
|
||||
ossbucket = bucket,
|
||||
ossobject = image.key,
|
||||
)
|
||||
features = ecs.models.ImportImageRequestFeatures(
|
||||
imds_support='v1',
|
||||
nvme_support='supported',
|
||||
)
|
||||
req = ecs.models.ImportImageRequest(
|
||||
region_id=clients.region,
|
||||
image_name=image.name,
|
||||
architecture=image.arch,
|
||||
boot_mode=image.mode,
|
||||
disk_device_mapping=[disk],
|
||||
features=features,
|
||||
client_token=str(uuid4()),
|
||||
)
|
||||
rsp = clients.ecs.import_image_with_options(req, RUNTIME_OPTS)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user