mounter.go: format return err.

This commit is contained in:
zhangxiaoyu-zidif 2017-05-01 10:40:42 +08:00
parent ef4b4acf1e
commit f70065478e

View File

@ -68,7 +68,7 @@ func mountInChroot(rootfsPath string, args []string) error {
args = append([]string{rootfsPath, mountCmd}, args...)
output, err := exec.Command(chrootCmd, args...).CombinedOutput()
if err == nil {
return err
return nil
}
if !strings.EqualFold(string(output), nfsRPCBindErrMsg) {