Created
May 25, 2015 10:29
-
-
Save gfa/dd3ad7855de837566220 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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