diff options
-rw-r--r-- | super-ddf.c | 2 | ||||
-rw-r--r-- | super-intel.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c index ea8439b0..a78692c3 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -846,7 +846,7 @@ static int load_super_ddf(struct supertype *st, int fd, if (get_dev_size(fd, devname, &dsize) == 0) return 1; - if (test_partition(fd)) + if (!st->ignore_hw_compat && test_partition(fd)) /* DDF is not allowed on partitions */ return 1; 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; |