All recent-enough versions of linux see the xen paravirtual device as
/dev/xvd*.

This doesn't break old installations, as the default is only used on new
clusters.

Signed-off-by: Guido Trotter <[email protected]>
---
 lib/constants.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/constants.py b/lib/constants.py
index 80bd5d4..884eb6b 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -1891,7 +1891,7 @@ HVC_DEFAULTS = {
     HV_BOOTLOADER_ARGS: "",
     HV_KERNEL_PATH: XEN_KERNEL,
     HV_INITRD_PATH: "",
-    HV_ROOT_PATH: "/dev/sda1",
+    HV_ROOT_PATH: "/dev/xvda1",
     HV_KERNEL_ARGS: "ro",
     HV_MIGRATION_PORT: 8002,
     HV_MIGRATION_MODE: HT_MIGRATION_LIVE,
-- 
1.7.10.4

Reply via email to