Skip to content
Snippets Groups Projects
Commit 9dc14cdd authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Support host bundling in XEN Domains

Fix the root device check to support /dev/xvda[1-9] devices

This fixes #52
parent 1b36a3e9
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# Copyright (C) 2011-2015 GRNET S.A. # Copyright (C) 2011-2016 GRNET S.A.
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -219,7 +219,7 @@ class BundleVolume(object): ...@@ -219,7 +219,7 @@ class BundleVolume(object):
if root.startswith("UUID=") or root.startswith("LABEL="): if root.startswith("UUID=") or root.startswith("LABEL="):
root = findfs(root).stdout.strip() root = findfs(root).stdout.strip()
if not re.match('/dev/[hsv]d[a-z][1-9]*$', root): if not re.match('/dev/x?[hsv]d[a-z][1-9]*$', root):
raise FatalError("Don't know how to handle root device: %s" % root) raise FatalError("Don't know how to handle root device: %s" % root)
out.success(root) out.success(root)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment