Change default xen root path to /dev/xvda1
authorGuido Trotter <ultrotter@google.com>
Tue, 12 Feb 2013 09:39:16 +0000 (10:39 +0100)
committerGuido Trotter <ultrotter@google.com>
Tue, 12 Feb 2013 13:39:53 +0000 (14:39 +0100)
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 <ultrotter@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>

lib/constants.py

index 80bd5d4..884eb6b 100644 (file)
@@ -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,