fix(baremetal): change cat path

This commit is contained in:
Zexi Li
2021-10-05 21:36:07 +08:00
parent 16102bfb68
commit a46e24d305
+1 -1
View File
@@ -404,7 +404,7 @@ func (p *SSHPartition) CheckOrAddUser(user, homeDir string, isSys bool) (realHom
}
func (p *SSHPartition) checkUser(user string) (exist bool, homeDir string, err error) {
cmd := fmt.Sprintf("/usr/sbin/chroot %s /usr/bin/cat /etc/passwd", p.mountPath)
cmd := fmt.Sprintf("/usr/sbin/chroot %s /bin/cat /etc/passwd", p.mountPath)
lines, err := p.term.Run(cmd)
if err != nil {
return