~smoser/ubuntu/quantal/cloud-init/sru

« back to all changes in this revision

Viewing changes to cloudinit/sources/DataSourceConfigDrive.py

  • Committer: Scott Moser
  • Date: 2013-01-18 15:28:08 UTC
  • Revision ID: smoser@ubuntu.com-20130118152808-jy5uq9pc79t82r85
Tags: 0.7.0-0ubuntu2.3~ppa0
debian/patches/lp-1100545-allow-config-drive-from-cdrom.patch:
in config-drive data to be provided from a CD-ROM (LP: #1100545)

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
    combined = (by_label + [d for d in by_fstype if d not in by_label])
201
201
 
202
202
    # We are looking for block device (sda, not sda1), ignore partitions
203
 
    combined = [d for d in combined if d[-1] not in "0123456789"]
 
203
    combined = [d for d in combined if not util.is_partition(d)]
204
204
 
205
205
    return combined
206
206