summaryrefslogtreecommitdiffstats
path: root/src/partauto.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-06-22 15:24:27 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-06-22 15:24:27 +0200
commit4872ae20228d50b70132037ad65718fcddee6f44 (patch)
tree27071bd445d3f82e977f15be8aefdcfe7ca6961d /src/partauto.c
parent6de815b1165e30897c52e0cbe819a602c8c5128a (diff)
Handle Humax partition table
Diffstat (limited to 'src/partauto.c')
-rw-r--r--src/partauto.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/partauto.c b/src/partauto.c
index 8704f6f..e081743 100644
--- a/src/partauto.c
+++ b/src/partauto.c
@@ -35,6 +35,7 @@
#include "log.h"
extern const arch_fnct_t arch_gpt;
+extern const arch_fnct_t arch_humax;
extern const arch_fnct_t arch_i386;
extern const arch_fnct_t arch_mac;
extern const arch_fnct_t arch_none;
@@ -74,6 +75,11 @@ void autodetect_arch(disk_t *disk)
}
if(list_part==NULL)
{
+ disk->arch=&arch_humax;
+ list_part=disk->arch->read_part(disk,verbose,0);
+ }
+ if(list_part==NULL)
+ {
disk->arch=&arch_i386;
list_part=disk->arch->read_part(disk,verbose,0);
}