Harald Hoyer 83ebbb
From 85bb744dfeb4f86979609b24323fec5181a1b98c Mon Sep 17 00:00:00 2001
Harald Hoyer 83ebbb
From: Dave Young <dyoung@redhat.com>
Harald Hoyer 83ebbb
Date: Mon, 26 Dec 2011 14:29:18 +0800
Harald Hoyer 83ebbb
Subject: [PATCH] change root home dir to /root
Harald Hoyer 83ebbb
Harald Hoyer 83ebbb
ssh need to read knownhosts from home directory, so change root home to /root
Harald Hoyer 83ebbb
Harald Hoyer 83ebbb
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer 83ebbb
---
Harald Hoyer 83ebbb
 modules.d/99base/module-setup.sh |    2 +-
Harald Hoyer 83ebbb
 1 files changed, 1 insertions(+), 1 deletions(-)
Harald Hoyer 83ebbb
Harald Hoyer 83ebbb
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
Harald Hoyer 83ebbb
index 03058b1..fad6c50 100755
Harald Hoyer 83ebbb
--- a/modules.d/99base/module-setup.sh
Harald Hoyer 83ebbb
+++ b/modules.d/99base/module-setup.sh
Harald Hoyer 83ebbb
@@ -23,7 +23,7 @@ install() {
Harald Hoyer 83ebbb
     fi
Harald Hoyer 83ebbb
 
Harald Hoyer 83ebbb
     #add common users in /etc/passwd, it will be used by nfs/ssh currently
Harald Hoyer 83ebbb
-    egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo  'root:x:0:0::/:/bin/sh' >> "$initdir/etc/passwd"
Harald Hoyer 83ebbb
+    egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo  'root:x:0:0::/root:/bin/sh' >> "$initdir/etc/passwd"
Harald Hoyer 83ebbb
     egrep '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
Harald Hoyer 83ebbb
     # install our scripts and hooks
Harald Hoyer 83ebbb
     inst "$moddir/init" "/init"