Skip to content

Commit

Permalink
mxraid_assemble: Always perform system command
Browse files Browse the repository at this point in the history
Closes #44.
  • Loading branch information
thomas committed May 11, 2018
1 parent ba43420 commit 47bf25c
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
@@ -298,7 +298,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 warn "# Error system @args failed: $?" if $VERBOSE >= 1;
system (@args) == 0 or warn "# Error system @args failed: $?"; # serious, always warn
} else {
printf "mdadm -A /dev/md%d -c %s\n", $dev_no, $conf_fn;
}

0 comments on commit 47bf25c

Please sign in to comment.