summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceNoCloud.py
diff options
context:
space:
mode:
authorGreg Padgett <gpadgett@redhat.com>2013-04-10 12:19:37 -0400
committerScott Moser <smoser@ubuntu.com>2013-04-10 12:19:37 -0400
commitb9c6f197b6865987e9cdd2cd71fa1a5a9dff11c5 (patch)
tree05953e7b1d262fb783068209cffb9fd4a76080ce /cloudinit/sources/DataSourceNoCloud.py
parent1c2adfa3835e031a0f946cef0d99fcfe3dfc1c95 (diff)
parent984c72e522c585c6d3f6b3d3aec39fb21dd84028 (diff)
downloadvyos-cloud-init-b9c6f197b6865987e9cdd2cd71fa1a5a9dff11c5.tar.gz
vyos-cloud-init-b9c6f197b6865987e9cdd2cd71fa1a5a9dff11c5.zip
improvments to systemd/fedora 18 support
This branch contains fixes found while investigating integration of cloud-init into oVirt. They're in 3 categories: - compatibility with systemd configuration management (as used in Fedora 18) - workaround for a 2.6 kernel quirk which prevented 'blkid' from displaying /dev/sr0 in some cases - writing sysconfig files in typical convention, with a newline preceding EOF, to make some parsers happy
Diffstat (limited to 'cloudinit/sources/DataSourceNoCloud.py')
-rw-r--r--cloudinit/sources/DataSourceNoCloud.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceNoCloud.py b/cloudinit/sources/DataSourceNoCloud.py
index 08a853cc..01c99028 100644
--- a/cloudinit/sources/DataSourceNoCloud.py
+++ b/cloudinit/sources/DataSourceNoCloud.py
@@ -87,6 +87,9 @@ class DataSourceNoCloud(sources.DataSource):
label = self.ds_cfg.get('fs_label', "cidata")
if label is not None:
+ # Query optical drive to get it in blkid cache for 2.6 kernels
+ util.find_devs_with(path="/dev/sr0")
+
fslist = util.find_devs_with("TYPE=vfat")
fslist.extend(util.find_devs_with("TYPE=iso9660"))