]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
change root home dir to /root
authorDave Young <dyoung@redhat.com>
Mon, 26 Dec 2011 06:29:18 +0000 (14:29 +0800)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Jan 2012 08:48:35 +0000 (09:48 +0100)
ssh need to read knownhosts from home directory, so change root home to /root

Signed-off-by: Dave Young <dyoung@redhat.com>
modules.d/99base/module-setup.sh

index 03058b147cf2ca2ef774f0b415fd75053a5e8900..fad6c5087b9cac53885eb27932392127f110a712 100755 (executable)
@@ -23,7 +23,7 @@ install() {
     fi
 
     #add common users in /etc/passwd, it will be used by nfs/ssh currently
-    egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo  'root:x:0:0::/:/bin/sh' >> "$initdir/etc/passwd"
+    egrep '^root:' "$initdir/etc/passwd" 2>/dev/null || echo  'root:x:0:0::/root:/bin/sh' >> "$initdir/etc/passwd"
     egrep '^nobody:' /etc/passwd >> "$initdir/etc/passwd"
     # install our scripts and hooks
     inst "$moddir/init" "/init"