]> code.ossystems Code Review - openembedded-core.git/commit
oe-core/init-install-testfs.sh: do not overwrite /etc/mtab if the link already exist
authorCristian Iorga <cristian.iorga@intel.com>
Fri, 20 Jun 2014 15:42:17 +0000 (18:42 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Jun 2014 16:51:22 +0000 (17:51 +0100)
commit5cd96e28825d345650be878d4b7be4fea2996839
tree535d649a70963b469f1d31a90d37847985c6f3a6
parent219228805a4d5d822894c8f6c2526e1b9a8609ff
oe-core/init-install-testfs.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: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/files/init-install-testfs.sh