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

Stanacar, StefanX stefanx.stanacar at intel.com
Wed Jul 31 09:04:14 UTC 2013



On Wed, 2013-07-31 at 16:46 +0800, ChenQi wrote:
> 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?
> 

I'm curios as well. Also can you please test this on a real hw? Try to
boot and/or install an image on atom-pc, I suspect it will fail.

Thanks,
Stefan


> 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 () {
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list