aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts/files/init-install.sh
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2013-04-15 11:33:46 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-16 11:39:32 +0100
commitf8663eac872882e94d956b1b604304e92b865766 (patch)
treeb44972d0355c3ce1a1574785dec78854304b2ef3 /meta/recipes-core/initrdscripts/files/init-install.sh
parentf704bb42062f2ac15edaad36497a8d2815b8b8b2 (diff)
downloadopenembedded-core-contrib-f8663eac872882e94d956b1b604304e92b865766.tar.gz
initramfs-live-install*: fix the "install" boot option
The install boot option was giving the following error when one tried to install the live image on a permanent storage of a BSP. cat: write error Invalid argument Installation image failed sh: can't access tty: job control turned off Further digging into the issue, found out that the install script was trying to do this: cat /proc/mounts > /etc/mtab And in the base-files recipe the /etc/mtab is made soft link to /proc/mounts. So the cat command was failing to write on /etc/mtab. As the contents of the /proc/mounts is already reflected in the /etc/mtab file due to the symlink-ing, there is no need for this step to recreate /etc/mtab in the install script. So just removing this unnecessary step, which solves the install issue of the live images. Fixes this bug: [YOCTO #4229] Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/initrdscripts/files/init-install.sh')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index d2a0db3183..2ecd333f92 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -78,7 +78,6 @@ if [ ! -b /dev/loop0 ] ; then
fi
mkdir -p /tmp
-cat /proc/mounts > /etc/mtab
disk_size=$(parted /dev/${device} unit mb print | grep Disk | cut -d" " -f 3 | sed -e "s/MB//")