mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #3060 from engineyard/support_xvd_based_instances
[aws] support `xvd` based devices (HVM)
This commit is contained in:
commit
db0e7c98f6
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ module Fog
|
|||
}
|
||||
|
||||
# This determines if we are doing a snapshot or a S3 backed AMI.
|
||||
if(location =~ /^\/dev\/sd[a-p]\d{0,2}$/)
|
||||
if(location =~ /^\/dev\/(xvd|sd)[a-p]\d{0,2}$/)
|
||||
common_options['RootDeviceName'] = location
|
||||
else
|
||||
common_options['ImageLocation'] = location
|
||||
|
@ -90,7 +90,7 @@ module Fog
|
|||
'registered' => Time.now
|
||||
}
|
||||
|
||||
if location[/^\/dev\/sd[a-p]\d{0,2}$/]
|
||||
if location[/^\/dev\/(xvd|sd)[a-p]\d{0,2}$/]
|
||||
image['rootDeviceName'] = location
|
||||
image['rootDeviceType'] = 'ebs'
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue