From: Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx> When rebuild is initiated by the UEFI driver it is possible that the new disk will not contain a valid ppl header. Just write the initial ppl and don't abort assembly. Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx> --- super-intel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/super-intel.c b/super-intel.c index 8f89930a..53385018 100644 --- a/super-intel.c +++ b/super-intel.c @@ -6227,7 +6227,10 @@ out: if (map->map_state == IMSM_T_STATE_UNINITIALIZED || (map->map_state == IMSM_T_STATE_NORMAL && - !(dev->vol.dirty & RAIDVOL_DIRTY))) + !(dev->vol.dirty & RAIDVOL_DIRTY)) || + (dev->vol.migr_state == MIGR_REBUILD && + dev->vol.curr_migr_unit == 0 && + get_imsm_disk_idx(dev, disk->disk.raid_disk, MAP_1) != idx)) ret = st->ss->write_init_ppl(st, info, d->fd); else info->mismatch_cnt++; -- 2.13.5 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html