]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm: Use disk name for mounting root
authorPekka Enberg <penberg@kernel.org>
Mon, 10 Jan 2011 17:44:50 +0000 (19:44 +0200)
committerPekka Enberg <penberg@kernel.org>
Tue, 11 Jan 2011 14:49:49 +0000 (16:49 +0200)
Use disk name for kernel "root=" parameter rather than the dynamic major and
minor numbers that vary from system to system.

Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/main.c

index 1f3232938a148ebf724d7c7e15a8ff566af1ba5a..58d63f7a994289e32d09d05a3024bd1046afb659 100644 (file)
@@ -201,7 +201,7 @@ int main(int argc, char *argv[])
 
        kvm__setup_cpuid(kvm);
 
-       strcpy(real_cmdline, "notsc nolapic nosmp noacpi pci=conf1 console=ttyS0 root=fc00 rw ");
+       strcpy(real_cmdline, "notsc nolapic nosmp noacpi pci=conf1 console=ttyS0 root=/dev/vda rw ");
        if (kernel_cmdline) {
                strlcat(real_cmdline, kernel_cmdline, sizeof(real_cmdline));
                real_cmdline[sizeof(real_cmdline)-1] = '\0';