[Fai-commit] r5923 - trunk/bin

Thomas Lange lange at alioth.debian.org
Sat Jul 31 16:29:05 UTC 2010


Author: lange
Date: 2010-07-31 16:29:05 +0000 (Sat, 31 Jul 2010)
New Revision: 5923

Modified:
   trunk/bin/make-fai-nfsroot
Log:
code cleanup, add comment


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2010-07-31 15:33:16 UTC (rev 5922)
+++ trunk/bin/make-fai-nfsroot	2010-07-31 16:29:05 UTC (rev 5923)
@@ -207,10 +207,13 @@
     # enable root login
     sed -i -e 's/PermitRootLogin no/PermitRootLogin yes/' $NFSROOT/etc/ssh/sshd_config
     if [ -f "$SSH_IDENTITY" ]; then
-        cp $SSH_IDENTITY $NFSROOT/root/.ssh/authorized_keys
-	chmod 0644 $NFSROOT/root/.ssh/authorized_keys
+        install -m0644 $SSH_IDENTITY $NFSROOT/root/.ssh/authorized_keys
         echo You can log into install clients without password using $SSH_IDENTITY
     fi
+
+# seting StrictHostKeyChecking to no inside the nfsroot would enable
+# easy login to the install server even if the host key is not known
+
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 copy_fai_files() {




More information about the Fai-commit mailing list