]> code.ossystems Code Review - openembedded-core.git/commit
oe-core/init-install.sh: do not overwrite /etc/mtab if the link already exist
authorShan Hai <shan.hai@windriver.com>
Thu, 5 Jun 2014 02:18:49 +0000 (10:18 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 10 Jun 2014 16:23:57 +0000 (17:23 +0100)
commit26a5121e966f465386da4ead40cc558fd877ce2b
tree96b5957db6450cbdd503c19d542799bdf18ae166
parentac5a9835075a04726a64dbd669b9c89270b23865
oe-core/init-install.sh: do not overwrite /etc/mtab if the link already exist

Overwriting of /etc/mtab would fail as below if the /etc/mtab link already
exist during installation phase, this patch fix this problem by checking
existance of the link before try to overwrite it.

Error message during installation if the /etc/mtab exists:
"cat: /proc/mounts: input file is output file

Signed-off-by: Shan Hai <shan.hai@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/initrdscripts/files/init-install.sh