diff options
author | David Lehman <dlehman@redhat.com> | 2013-01-14 17:48:37 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2013-01-28 13:15:31 -0600 |
commit | 9040049d8d232eae3f0f51ffe442dbe49d273bce (patch) | |
tree | 5966597dd00948b4eae345a9dc8b509ebb0dab00 /pyanaconda/packaging/__init__.py | |
parent | e6c6261e1d7e912103ef1618e4a84c5f70abb00a (diff) | |
download | anaconda-9040049d8d232eae3f0f51ffe442dbe49d273bce.tar.gz anaconda-9040049d8d232eae3f0f51ffe442dbe49d273bce.tar.xz anaconda-9040049d8d232eae3f0f51ffe442dbe49d273bce.zip |
Remove the storage module and replace it with blivet.
Diffstat (limited to 'pyanaconda/packaging/__init__.py')
-rw-r--r-- | pyanaconda/packaging/__init__.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py index 75ea61f93..fa4be2272 100644 --- a/pyanaconda/packaging/__init__.py +++ b/pyanaconda/packaging/__init__.py @@ -52,10 +52,10 @@ import logging log = logging.getLogger("packaging") from pyanaconda.errors import * -from pyanaconda.storage.errors import StorageError -from pyanaconda.storage import util -from pyanaconda.storage import arch -from pyanaconda.storage.platform import platform +from blivet.errors import StorageError +import blivet.util +import blivet.arch +from blivet.platform import platform #from pyanaconda.progress import progress from pyanaconda.product import productName, productVersion @@ -129,7 +129,7 @@ def get_mount_device(mountpoint): break if mount_device and re.match(r'/dev/loop\d+$', mount_device): - from pyanaconda.storage.devicelibs import loop + from blivet.devicelibs import loop loop_name = os.path.basename(mount_device) mount_device = loop.get_backing_file(loop_name) log.debug("found backing file %s for loop device %s" % (mount_device, @@ -484,7 +484,7 @@ class Payload(object): return else: try: - util.umount(realMountpoint) + blivet.util.umount(realMountpoint) except Exception as e: log.error(str(e)) log.info("umount failed -- mounting on top of it") @@ -510,7 +510,7 @@ class Payload(object): else: log.debug("%s already has something mounted on it" % mountpoint) try: - util.umount(mountpoint) + blivet.util.umount(mountpoint) except OSError as e: log.error(str(e)) log.info("umount failed -- mounting on top of it") @@ -519,7 +519,7 @@ class Payload(object): url = "%s:%s" % (server, path) try: - util.mount(url, mountpoint, fstype="nfs", options=options) + blivet.util.mount(url, mountpoint, fstype="nfs", options=options) except OSError as e: raise PayloadSetupError(str(e)) @@ -655,7 +655,7 @@ class PackagePayload(Payload): kernels.insert(0, "kernel-PAE") # most ARM systems use platform-specific kernels - if arch.isARM(): + if blivet.arch.isARM(): if platform.armMachine is not None: kernels = ["kernel-%s" % platform.armMachine] @@ -717,7 +717,7 @@ def write_txmbrs(payload, filename): if __name__ == "__main__": import os import sys - import pyanaconda.storage as _storage + import blivet from pykickstart.version import makeVersion from pyanaconda.packaging.yumpayload import YumPayload @@ -732,7 +732,7 @@ if __name__ == "__main__": #ksdata.method.url = "http://dl.fedoraproject.org/pub/fedora/linux/development/17/x86_64/os/" # set up storage - storage = _storage.Storage(data=ksdata) + storage = blivet.Blivet(ksdata=ksdata) storage.reset() # set up the payload |