Hi Leo, this fix looks good to me, can you mention how did you test this?
On Mon, 2015-08-03 at 15:01 +0000, leonardo.sandoval.gonza...@linux.intel.com wrote: > From: Leonardo Sandoval <leonardo.sandoval.gonza...@linux.intel.com> > > The base-files recipe installs /mnt/mtab (it is a softlink of > /proc/mounts), > so if an image includes the latter, there is no new to created it > again inside > the install-efi.sh script, otherwise an error may occur as indicated > on the > bug's site. > > [YOCTO #7971] > > Signed-off-by: Leonardo Sandoval < > leonardo.sandoval.gonza...@linux.intel.com> > --- > meta/recipes-core/initrdscripts/files/init-install-efi.sh | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-core/initrdscripts/files/init-install > -efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh > index f339b30..665d04a 100644 > --- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh > +++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh > @@ -109,7 +109,11 @@ rm -f /etc/udev/scripts/mount* > umount ${device}* 2> /dev/null || /bin/true > > mkdir -p /tmp > -cat /proc/mounts > /etc/mtab > + > +# Create /etc/mtab if not present > +if [ ! -e /etc/mtab ]; then > + cat /proc/mounts > /etc/mtab > +fi > > disk_size=$(parted ${device} unit mb print | grep Disk | cut -d" " > -f 3 | sed -e "s/MB//") > > -- > 1.8.4.5 > -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core