Merge "Removed duplicated function to create a swap fs"

This commit is contained in:
Jenkins 2014-02-04 21:01:00 +00:00 committed by Gerrit Code Review
commit 4f73b8a4a7

View File

@ -116,11 +116,7 @@ def dd(src, dst):
def mkswap(dev, label='swap1'):
"""Execute mkswap on a device."""
utils.execute('mkswap',
'-L', label,
dev,
run_as_root=True,
check_exit_code=[0])
utils.mkfs('swap', dev, label)
def block_uuid(dev):