mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
Merge branch 'dm-missing-mapper' into dm
This commit is contained in:
@@ -121,6 +121,10 @@ func cleanupDevMapper() error {
|
||||
// Remove any leftover devmapper devices from previous unit run tests
|
||||
infos, err := ioutil.ReadDir("/dev/mapper")
|
||||
if err != nil {
|
||||
// If the mapper file does not exist there is nothing to clean up
|
||||
if os.IsNotExist(err) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
pools := []string{}
|
||||
|
||||
Reference in New Issue
Block a user