mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
mounter.go: format return err.
This commit is contained in:
parent
ef4b4acf1e
commit
f70065478e
@ -68,7 +68,7 @@ func mountInChroot(rootfsPath string, args []string) error {
|
|||||||
args = append([]string{rootfsPath, mountCmd}, args...)
|
args = append([]string{rootfsPath, mountCmd}, args...)
|
||||||
output, err := exec.Command(chrootCmd, args...).CombinedOutput()
|
output, err := exec.Command(chrootCmd, args...).CombinedOutput()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.EqualFold(string(output), nfsRPCBindErrMsg) {
|
if !strings.EqualFold(string(output), nfsRPCBindErrMsg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user