summaryrefslogtreecommitdiff
path: root/extensions/openstack.write
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/openstack.write')
-rwxr-xr-xextensions/openstack.write2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/openstack.write b/extensions/openstack.write
index f123356..f0d2fc0 100755
--- a/extensions/openstack.write
+++ b/extensions/openstack.write
@@ -51,7 +51,7 @@ class OpenStackWriteExtension(writeexts.WriteExtension):
def set_extlinux_root_to_virtio(self, raw_disk):
'''Re-configures extlinux to use virtio disks'''
self.status(msg='Updating extlinux.conf')
- with self.mount(raw_disk) as mp:
+ with self.find_and_mount_rootfs(raw_disk) as mp:
path = os.path.join(mp, 'extlinux.conf')
with open(path) as f: