summaryrefslogtreecommitdiff
path: root/super-intel.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-05-16 13:24:07 +1000
committerNeilBrown <neilb@suse.de>2013-05-16 13:24:07 +1000
commitb31df43682216d1c65813eae49ebdd8253db8907 (patch)
tree3811b2e844ee82126b1bd4858d9786f1a2c62bd2 /super-intel.c
parenta21e848a5578793a5ab6518390433b020785af3b (diff)
intel,ddf: don't require partitions when ignore_hw_compat is set.
Partitions are a hw-compat issue. This allows e.g "--examine" to be used on image files. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 3f15b0f1..2cb28b04 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -4381,7 +4381,7 @@ static int load_super_imsm(struct supertype *st, int fd, char *devname)
struct intel_super *super;
int rv;
- if (test_partition(fd))
+ if (!st->ignore_hw_compat && test_partition(fd))
/* IMSM not allowed on partitions */
return 1;