Merge pull request #67349 from thefloweringash/amazon-device-names
ec2/create-amis.sh: register root device as /dev/xvda
This commit is contained in:
@@ -211,11 +211,11 @@ upload_image() {
|
|||||||
log "Registering snapshot $snapshot_id as AMI"
|
log "Registering snapshot $snapshot_id as AMI"
|
||||||
|
|
||||||
local block_device_mappings=(
|
local block_device_mappings=(
|
||||||
"DeviceName=/dev/sda1,Ebs={SnapshotId=$snapshot_id,VolumeSize=$image_logical_gigabytes,DeleteOnTermination=true,VolumeType=gp2}"
|
"DeviceName=/dev/xvda,Ebs={SnapshotId=$snapshot_id,VolumeSize=$image_logical_gigabytes,DeleteOnTermination=true,VolumeType=gp2}"
|
||||||
)
|
)
|
||||||
|
|
||||||
local extra_flags=(
|
local extra_flags=(
|
||||||
--root-device-name /dev/sda1
|
--root-device-name /dev/xvda
|
||||||
--sriov-net-support simple
|
--sriov-net-support simple
|
||||||
--ena-support
|
--ena-support
|
||||||
--virtualization-type hvm
|
--virtualization-type hvm
|
||||||
|
|||||||
Reference in New Issue
Block a user