[OE-core] [PATCH] base-files: remove symbolic link from /etc/mtab to /proc/mounts

ChenQi Qi.Chen at windriver.com
Wed Jul 31 08:46:55 UTC 2013


On 07/31/2013 04:19 PM, Chunrong Guo wrote:
>      *If /etc/mtab is a symlink to /proc/self/mounts,
>       mounting fails because addmntent returns an error.
>       As a consequence, the Private directory is unusable
>       because /proc/self/mounts is read-only feature.

Could you please detail your environment a little bit?
Where does this error come from?

Besides, if you're going to make this change, please take a read-only 
rootfs into consideration. There should be more to fix.

Best Regards,
Chen Qi

> Signed-off-by: Chunrong Guo <B40290 at freescale.com>
> ---
>   meta/recipes-core/base-files/base-files_3.0.14.bb |    1 -
>   1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
> index 054fefa..1843bdd 100644
> --- a/meta/recipes-core/base-files/base-files_3.0.14.bb
> +++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
> @@ -100,7 +100,6 @@ do_install () {
>   	install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf
>   	install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd
>   
> -	ln -sf /proc/mounts ${D}${sysconfdir}/mtab
>   }
>   
>   do_install_basefilesissue () {




More information about the Openembedded-core mailing list