]> 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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 28 Mar 2019 16:28:12 +0000 (11:28 -0500)
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>
(cherry picked from commit 484d366e02732c8de6f92e53e2ee9bb93dd4ca23)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ppc/mac_oldworld.c

index 9891c325a9bd3042a8bc26d8b58a18a83a9803d6..a8c8ec77bc1152a7a691e419f1daa51e1647888a 100644 (file)
@@ -404,11 +404,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")) {