summaryrefslogtreecommitdiff
path: root/Incremental.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-30 14:28:25 +1100
committerNeilBrown <neilb@suse.de>2012-11-20 12:07:30 +1100
commitcb8f6859d1f0c18bdac10353e45eb14825b24cd2 (patch)
tree7e5982b1eeb650befe65e8aebdcc6a54c4bb53c1 /Incremental.c
parent156044805c762f87577366e36b18c4c80bfe40ba (diff)
IMSM - allow assembling any imsm array even without OROM.
It is important to check for compatibility with 'platform' or Option ROM when creating or changing and array. However there is no real need when simply assembling the array. On some systems there are situations where the platform information is not available. e.g. on some UEFI systems, UEFI is not available during 'kdump' handling. This makes it impossible to assemble an IMSM array to receive the dump. So remove the requirements that the platform be visible to assemble an IMSM array. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r--Incremental.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Incremental.c b/Incremental.c
index 4c889b5f..bc23a885 100644
--- a/Incremental.c
+++ b/Incremental.c
@@ -127,6 +127,8 @@ int Incremental(char *devname, struct context *c,
if (must_be_container(dfd)) {
if (!st)
st = super_by_fd(dfd, NULL);
+ if (st)
+ st->ignore_hw_compat = 1;
if (st && st->ss->load_container)
rv = st->ss->load_container(st, dfd, NULL);
@@ -185,6 +187,7 @@ int Incremental(char *devname, struct context *c,
st, c->verbose);
goto out;
}
+ st->ignore_hw_compat = 1;
if (st->ss->compare_super == NULL ||
st->ss->load_super(st, dfd, NULL)) {
if (c->verbose >= 0)