diff options
author | Ben Howard <ben.howard@canonical.com> | 2013-10-02 15:05:15 -0600 |
---|---|---|
committer | Ben Howard <ben.howard@canonical.com> | 2013-10-02 15:05:15 -0600 |
commit | ea88f3e1208ba501b50d1f41187b83cf11f15785 (patch) | |
tree | a1c1ea966d8ed38670968d809dba88750cc4cd96 /cloudinit/sources/DataSourceSmartOS.py | |
parent | ed8cb662f72e4e3e03ee0489593b7d114e5618cf (diff) | |
download | vyos-cloud-init-ea88f3e1208ba501b50d1f41187b83cf11f15785.tar.gz vyos-cloud-init-ea88f3e1208ba501b50d1f41187b83cf11f15785.zip |
Added ability to define disks via 'ephemeralX.Y'.
Modified cc_mounts to identify whether ephermalX is partitioned.
Changed datasources for Azure and SmartOS to use 'ephemeralX.Y' format.
Added disk remove functionally
Diffstat (limited to 'cloudinit/sources/DataSourceSmartOS.py')
-rw-r--r-- | cloudinit/sources/DataSourceSmartOS.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cloudinit/sources/DataSourceSmartOS.py b/cloudinit/sources/DataSourceSmartOS.py index 93b8b50b..9b3fdf1a 100644 --- a/cloudinit/sources/DataSourceSmartOS.py +++ b/cloudinit/sources/DataSourceSmartOS.py @@ -81,8 +81,9 @@ BUILTIN_CLOUD_CONFIG = { 'layout': False, 'overwrite': False} }, - 'fs_setup': [{'label': 'ephemeral0', 'filesystem': 'ext3', - 'device': 'ephemeral0', 'partition': 'auto'}], + 'fs_setup': [{'label': 'ephemeral0', + 'filesystem': 'ext3', + 'device': 'ephemeral0'}], } @@ -155,7 +156,9 @@ class DataSourceSmartOS(sources.DataSource): return True def device_name_to_device(self, name): - return self.ds_cfg['disk_aliases'].get(name) + device = name.split('.')[0] + return util.map_device_alias(self.ds_cfg['disk_aliases'].get(device), + alias=name) def get_config_obj(self): return self.cfg |