diff --git a/super-ddf.c b/super-ddf.c index 8f60b72..87584fa 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -2964,8 +2964,9 @@ static int write_init_super_ddf(struct supertype *st) return 0; } else { struct dl *d; - for (d = ddf->dlist; d; d=d->next) - while (Kill(d->devname, NULL, 0, -1, 1) == 0); + if (!currentconf) + for (d = ddf->dlist; d; d=d->next) + while (Kill(d->devname, NULL, 0, -1, 1) == 0); return __write_init_super_ddf(st); } }