Changeset 4793 in /cluster/svnroot


Ignore:
Timestamp:
Jul 5, 2014 9:45:17 PM (6 years ago)
Author:
skylar
Message:

only remove /dev/<vg> if it exists (#857)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar/bccd-3.4.0/packages/liberate.pl

    r4792 r4793  
    275275# wheezy seems to have a udev bug that keeps /dev/<vg> from being
    276276# cleaned up after vgremove
    277 $Bccd->run_test(
    278     "rmtree",
    279     "",
    280     "Removed any stale volume group files in /dev/$PROJECT",
    281     "/dev/$PROJECT",
    282 );
     277if(-d "/dev/$PROJECT") {
     278    $Bccd->run_test(
     279        "rmtree",
     280        "",
     281        "Removed any stale volume group files in /dev/$PROJECT",
     282        "/dev/$PROJECT",
     283    );
     284}
    283285
    284286$Bccd->run_test(
Note: See TracChangeset for help on using the changeset viewer.