Skip to content

Commit

Permalink
mxraid_assemble: Don't bail out if a single assembly fails
Browse files Browse the repository at this point in the history
The 'die' was from the development phase, now it's deemed ok to
continue building the other RAIDS (if any). This closes #34.
  • Loading branch information
thomas committed Apr 11, 2018
1 parent 2116408 commit 2f0a179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxraid/mxraid_assemble
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ sub create_mdadm_configs {
my @args = ('mdadm', '-A', '/dev/md'.$dev_no, '-c', $conf_fn);
push @args, split m/\s+/, $MDADM_ASSEMBLE_OPTIONS if $MDADM_ASSEMBLE_OPTIONS;
warn printf "# NOTE: $rlabel, running '%s'\n", join(' ', @args) if $VERBOSE >= 2;
system (@args) == 0 or die "# Error system @args failed: $?";
system (@args) == 0 or warn "# Error system @args failed: $?" if $VERBOSE >= 1;
} else {
printf "mdadm -A /dev/md%d -c %s\n", $dev_no, $conf_fn;
}
Expand Down

0 comments on commit 2f0a179

Please sign in to comment.