From 1a05a6f737d1dcaa11d750ba9b3daff58d8a738d Mon Sep 17 00:00:00 2001 From: neil Date: Thu, 23 Apr 2009 21:09:06 +0000 Subject: [PATCH] Recognise Amithlon/UAE virtual disks. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@31149 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/common/boot/grub2/grub2-aros.diff | 2 +- arch/common/boot/grub2/include/grub/pc_partition.h | 2 +- workbench/libs/partition/partitionrdb.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/common/boot/grub2/grub2-aros.diff b/arch/common/boot/grub2/grub2-aros.diff index 50806d87f..1440589de 100644 --- a/arch/common/boot/grub2/grub2-aros.diff +++ b/arch/common/boot/grub2/grub2-aros.diff @@ -106,7 +106,7 @@ diff -ur -x .svn ./grub2-1919/include/grub/pc_partition.h ./grub2/include/grub/p +static inline int +grub_pc_partition_is_rdb(int type) +{ -+ return (type == 0x30); ++ return (type == 0x30 || type == 0x76); +} + #endif /* ! GRUB_PC_PARTITION_HEADER */ diff --git a/arch/common/boot/grub2/include/grub/pc_partition.h b/arch/common/boot/grub2/include/grub/pc_partition.h index 5b61938ea..04fc259da 100644 --- a/arch/common/boot/grub2/include/grub/pc_partition.h +++ b/arch/common/boot/grub2/include/grub/pc_partition.h @@ -209,7 +209,7 @@ grub_pc_partition_is_bsd (int type) static inline int grub_pc_partition_is_rdb(int type) { - return (type == 0x30); + return (type == 0x30 || type == 0x76); } #endif /* ! GRUB_PC_PARTITION_HEADER */ diff --git a/workbench/libs/partition/partitionrdb.c b/workbench/libs/partition/partitionrdb.c index de9147dcb..f9d44abd6 100644 --- a/workbench/libs/partition/partitionrdb.c +++ b/workbench/libs/partition/partitionrdb.c @@ -74,7 +74,7 @@ struct TagItem tags[] = {{PT_TYPE, (IPTR)&type}, {TAG_DONE, 0}}; if ( root->root->table->type != PHPTT_MBR && root->root->table->type != PHPTT_EBR || - type.id[0] != 0x30 + type.id[0] != 0x30 && type.id[0] != 0x76 ) { return 0; -- 2.11.4.GIT