UnmountAll is a no-op for missing mount points
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
@@ -177,6 +177,9 @@ func UnmountAll(mount string, flags int) error {
|
||||
// This isn't an error, per the EINVAL handling in the Linux version
|
||||
return nil
|
||||
}
|
||||
if _, err := os.Stat(mount); os.IsNotExist(err) {
|
||||
return nil
|
||||
}
|
||||
|
||||
return Unmount(mount, flags)
|
||||
}
|
||||
|
Reference in New Issue
Block a user