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 <[email protected]>
---
 modules.d/95ssh-client/module-setup.sh |    8 --------
 1 file changed, 8 deletions(-)

--- dracut.orig/modules.d/95ssh-client/module-setup.sh
+++ dracut/modules.d/95ssh-client/module-setup.sh
@@ -15,9 +15,6 @@ check() {
             derror "ssh key: $sshkey is not found!"
             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
 
     return 255
@@ -50,11 +47,6 @@ inst_sshenv()
 }
 
 install() {
-    [[ ! $cttyhack = yes && ! $sshkey ]] && {
-        derror "ssh-client needs option --ctty or --sshkey!"
-        return 1
-    }
-
     dracut_install ssh scp
     inst_sshenv
 }

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to