ssh-client: remove ctty related check
cttyhack was removed and ctty is supported by default, so no need to check it in ssh-client module any more. Signed-off-by: Dave Young <dyoung@redhat.com>master
parent
c62b94614d
commit
fc9bc6f8db
|
@ -15,9 +15,6 @@ check() {
|
||||||
derror "ssh key: $sshkey is not found!"
|
derror "ssh key: $sshkey is not found!"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
[[ ! $cttyhack = yes ]] && {
|
|
||||||
dinfo "--ctty is not used, you should make sure the machine is a knownhost and copy the sshkey to remote machine!"
|
|
||||||
}
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 255
|
return 255
|
||||||
|
@ -50,11 +47,6 @@ inst_sshenv()
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
[[ ! $cttyhack = yes && ! $sshkey ]] && {
|
|
||||||
derror "ssh-client needs option --ctty or --sshkey!"
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
dracut_install ssh scp
|
dracut_install ssh scp
|
||||||
inst_sshenv
|
inst_sshenv
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue