From 2f0a179d691f13df12989de11f4c4b324c5864ef Mon Sep 17 00:00:00 2001 From: thomas Date: Wed, 11 Apr 2018 13:57:43 +0200 Subject: [PATCH] mxraid_assemble: Don't bail out if a single assembly fails The 'die' was from the development phase, now it's deemed ok to continue building the other RAIDS (if any). This closes #34. --- mxraid/mxraid_assemble | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxraid/mxraid_assemble b/mxraid/mxraid_assemble index 34855c4..ce064ae 100755 --- a/mxraid/mxraid_assemble +++ b/mxraid/mxraid_assemble @@ -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; }