[Fai-commit] r3099 - trunk/bin

fai-repository at svn.debian.org fai-repository at svn.debian.org
Thu Nov 24 11:08:17 UTC 2005


Author: lange
Date: 2005-11-24 11:08:16 +0000 (Thu, 24 Nov 2005)
New Revision: 3099

Modified:
   trunk/bin/make-fai-nfsroot
Log:
use chpasswd for setting the root pw inside the nfsroot


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2005-11-23 23:11:32 UTC (rev 3098)
+++ trunk/bin/make-fai-nfsroot	2005-11-24 11:08:16 UTC (rev 3099)
@@ -197,7 +197,7 @@
 copy_fai_files() {
 
     # copy to nfsroot
-    perl -pi -e "s#^root::#root:${FAI_ROOTPW}:#" etc/passwd
+    echo "root:$FAI_ROOTPW" | $ROOTCMD chpasswd --encrypted
     cd $NFSROOT
     cp -Rpv $cfdir/* $NFSROOT/etc/fai
     # remove some files that should not be copied




More information about the Fai-commit mailing list