From: Dave Young Date: Mon, 26 Dec 2011 06:29:18 +0000 (+0800) Subject: change root home dir to /root X-Git-Tag: 015~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=85bb744dfeb4f86979609b24323fec5181a1b98c;p=thirdparty%2Fdracut.git change root home dir to /root ssh need to read knownhosts from home directory, so change root home to /root Signed-off-by: Dave Young --- diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh index 03058b147..fad6c5087 100755 --- a/modules.d/99base/module-setup.sh +++ b/modules.d/99base/module-setup.sh @@ -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"