summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_disk_setup.py
AgeCommit message (Collapse)Author
2016-05-12Fix up a ton of flake8 issuesJoshua Harlow
2016-04-04disk_setup: correctly send --force to mkfs on block devicesScott Moser
Send the --force flag to mkfs or other filesystems when target is a block device. This fixes a general code flow issue where we were setting the --force flag. LP: #1548772
2016-03-03Update pep8 runner and fix pep8 issuesRyan Harper
2015-07-22remove some overly verbose log messagesScott Moser
2015-07-21Extend disk_setup and mounts to handle /dev/disk symlinks.Daniel Watkins
2015-03-18Update is_disk_used for changed enumerate_disk output.Daniel Watkins
Fixes Launchpad bug #1311463.
2015-02-13fix usage of python2 'print'Scott Moser
2015-01-13Find disk size differently for GPT.Daniel Watkins
MBR uses block sizes, which is what the current (apparently portable) code was producing. GPT uses sectors to determine partition size.
2015-01-13Initial run at GPT disk handling.Daniel Watkins
2015-01-13Implement check_partition_gpt_layout.Daniel Watkins
This includes moving some shared logic in to check_partition_layout.
2015-01-13Fix lsblk output option.Daniel Watkins
2014-08-26further remove evidence of pylint.Scott Moser
This just removes comments '# pylint:' things and other code remnents of pylint.
2014-08-26fix(pep8): Fix various pep8 violations and version-lock pep8Jay Faulkner
Fixed all complaints from running "make pep8". Also version locked pep8 in test-requirements.txt to ensure that pep8 requirements don't change without an explicit commit.
2013-10-04pep8 and pylint fixesScott Moser
2013-10-04simplifications and some function renamesScott Moser
2013-10-03Added support for 'ephmeral0.<auto|any|0>' for device mappings in diskBen Howard
formating support.
2013-10-03Make {pep8,pylint,test} pass commit.Ben Howard
2013-10-03Wrapped use of 'lsblk' to a generator function; removed other fcalls to 'lsblk'Ben Howard
2013-10-03Moved ephemeralX.Y handling from Datasource into the cc_disk_setup, which ↵Ben Howard
makes it cloud agnostic.
2013-10-03remove verbosity of log.infoScott Moser
2013-10-03use native python code for wiping partition tableScott Moser
I'm pretty sure the previous code wasn't seeking correctly and probably writing near the end, but not to the end. This is simpler and probably faster.
2013-10-03fix pep8Scott Moser
2013-10-02Added ability to define disks via 'ephemeralX.Y'.Ben Howard
Modified cc_mounts to identify whether ephermalX is partitioned. Changed datasources for Azure and SmartOS to use 'ephemeralX.Y' format. Added disk remove functionally
2013-10-02fix permission changesScott Moser
2013-10-01Reordered several imports in order for test suite to pass.Eric Nordlund
2013-09-27find_device_node: treat label=None as label=""Scott Moser
Since for a string there is no difference, we're just checking for this here.
2013-09-27change LOG.debug('format' % var) to ('format', var)Scott Moser
2013-09-27fix one bugScott Moser
2013-09-27demote .info to .debug, add another debugScott Moser
2013-09-27adjust aliases early rather than late.Scott Moser
this adds 2 functions update_disk_setup_devices update_fs_setup_devices Which update the appropriate datatype, and translate the names. Translating early means we don't have to deal with updating in the mkfs or mkpart calls explicitly. These are more easily unit tested as they just take a dictionary of the expected type and a 'transformer' that should return a new name or None.
2013-09-27update to get functional with any alias in a 'device' entryScott Moser
2013-09-27fix syntax error in last commitScott Moser
2013-09-27fix probably debug code that explicitly set 'partition' to 'any'.Scott Moser
2013-09-19Fixes for the MP.Ben Howard
Changed cc_disk_setup to handle the file systems as a label, no longer passing "log" around. Tidied up the documentation to reflect the changes and made grammer, spelling and improved the content a little. Added disk_setup to the default modules list.
2013-09-11Initial cut at disk partition support.Ben Howard