Skip to content

Commit

Permalink
do not try to determine raid and lvm info if tools are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jul 18, 2016
1 parent 41c79a7 commit 83977b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/setup-storage
Expand Up @@ -164,10 +164,10 @@ defined($FAI::udev_settle) or die "Failed to find determine a proper way to tell
&FAI::get_current_disks;

# see whether there are any existing LVMs
&FAI::get_current_lvm;
&FAI::in_path("pvdisplay") and &FAI::get_current_lvm;

# see whether there are any existing RAID devices
&FAI::get_current_raid;
&FAI::in_path("mdadm") and &FAI::get_current_raid;

# mark devices as preserve, where not all already done so and check that only
# defined devices are marked preserve
Expand Down

0 comments on commit 83977b4

Please sign in to comment.