diff options
author | Greg Padgett <gpadgett@redhat.com> | 2013-06-04 20:42:55 -0400 |
---|---|---|
committer | Greg Padgett <gpadgett@redhat.com> | 2013-06-04 20:42:55 -0400 |
commit | 48a3b4ca0ba55699825d6eabe75d843286c23545 (patch) | |
tree | d07f8adcf61db6db55c9c1d12283dc831be2d01a /cloudinit/sources/DataSourceNoCloud.py | |
parent | e98380cb087a562a2cda7e13a99ce0bb0333b51b (diff) | |
download | vyos-cloud-init-48a3b4ca0ba55699825d6eabe75d843286c23545.tar.gz vyos-cloud-init-48a3b4ca0ba55699825d6eabe75d843286c23545.zip |
support optical drives with dev node /dev/sr1
Extend a prior fix which helped discovery of media on systems using 2.6
kernels. /dev/sr0 covers only some of the use cases, /dev/sr1 is also
common.
Diffstat (limited to 'cloudinit/sources/DataSourceNoCloud.py')
-rw-r--r-- | cloudinit/sources/DataSourceNoCloud.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceNoCloud.py b/cloudinit/sources/DataSourceNoCloud.py index 01c99028..084abca7 100644 --- a/cloudinit/sources/DataSourceNoCloud.py +++ b/cloudinit/sources/DataSourceNoCloud.py @@ -89,6 +89,7 @@ class DataSourceNoCloud(sources.DataSource): 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") + util.find_devs_with(path="/dev/sr1") fslist = util.find_devs_with("TYPE=vfat") fslist.extend(util.find_devs_with("TYPE=iso9660")) |