diff options
author | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2007-06-06 14:13:56 +0000 |
---|---|---|
committer | Rolf Leggewie <oe-devel@rolf.leggewie.biz> | 2007-06-06 14:13:56 +0000 |
commit | 2c8167306487b402abee1feffa8bf543fc44b33d (patch) | |
tree | aa6eb893ff5b0f30c91a53c8c127e844d573b713 /packages/initscripts/initscripts-1.0/mountall.sh | |
parent | c2c7d6b185a6b88381eeb4820f8bae76dfd9ac2b (diff) | |
parent | df08ea5a36b5ea679f95da93042a2d3c0cf21bd9 (diff) |
merge of 'a4a93e205d5a389011745cf24cb1a68fbc0ed7e7'
and 'b271566db667a7d227532eeb896b9f11d7e009c9'
Diffstat (limited to 'packages/initscripts/initscripts-1.0/mountall.sh')
-rwxr-xr-x | packages/initscripts/initscripts-1.0/mountall.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-1.0/mountall.sh b/packages/initscripts/initscripts-1.0/mountall.sh index b5cb85a1e9..65d5d26b24 100755 --- a/packages/initscripts/initscripts-1.0/mountall.sh +++ b/packages/initscripts/initscripts-1.0/mountall.sh @@ -41,5 +41,17 @@ then swapon -a 2> /dev/null fi +# A missing homedirectory for root can cause all sorts of problems. +# This can happen after user formats his /home partition for example + +if test -e /etc/passwd +then + ROOT_HOME="`cat /etc/passwd|grep ^root | awk '{split($0,x,":");printf("%s\n",x[6])}'`" + + if test -n "$ROOT_HOME" + then + ! test -d "$ROOT_HOME" && mkdir -p "$ROOT_HOME" + fi +fi : exit 0 |