]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
mac_oldworld: use node name instead of alias name for hd device in FWPathProvider
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Thu, 7 Mar 2019 21:20:57 +0000 (21:20 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Mar 2019 03:33:04 +0000 (14:33 +1100)
When using -drive to configure the hd drive for the Old World machine, the node
name "disk" should be used instead of the "hd" alias.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <20190307212058.4890-2-mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/mac_oldworld.c

index cc1e463466d4178acc959f5e716f4b486c61117f..460cbc79233ef001abd37b6780575fd2141fede5 100644 (file)
@@ -402,11 +402,11 @@ static char *heathrow_fw_dev_path(FWPathProvider *p, BusState *bus,
             return g_strdup("cdrom");
         }
 
-        return g_strdup("hd");
+        return g_strdup("disk");
     }
 
     if (!strcmp(object_get_typename(OBJECT(dev)), "ide-hd")) {
-        return g_strdup("hd");
+        return g_strdup("disk");
     }
 
     if (!strcmp(object_get_typename(OBJECT(dev)), "ide-cd")) {