Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gfa/dd3ad7855de837566220 to your computer and use it in GitHub Desktop.
Save gfa/dd3ad7855de837566220 to your computer and use it in GitHub Desktop.
--- api.py 2015-03-26 16:37:22.995355584 +0800
+++ /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py 2015-03-26 16:34:58.062630920 +0800
@@ -377,7 +377,8 @@
Returns path of image device which is mounted to the container directory.
"""
- img = _DiskImage(image=image, use_cow=use_cow, mount_dir=container_dir)
+ #img = _DiskImage(image=image, use_cow=use_cow, mount_dir=container_dir)
+ img = _DiskImage(image=image, use_cow=use_cow, mount_dir=container_dir, partition=1)
dev = img.mount()
if dev is None:
LOG.error(_("Failed to mount container filesystem '%(image)s' "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment