]> code.ossystems Code Review - openembedded-core.git/commit
initramfs-live-install*: fix the "install" boot option
authorNitin A Kamble <nitin.a.kamble@intel.com>
Mon, 15 Apr 2013 18:33:46 +0000 (11:33 -0700)
committerRoss Burton <ross.burton@intel.com>
Tue, 23 Apr 2013 10:07:44 +0000 (11:07 +0100)
commit2f5d41f94c53aaf606de66891c37de0dbd86f54b
tree0cc9772cf51057df17d760891bba834b604324b5
parentdf39cc2820aeaa8d5187a65945f7739bc6fa53cb
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>
meta/recipes-core/initrdscripts/files/init-install-efi.sh
meta/recipes-core/initrdscripts/files/init-install.sh
meta/recipes-core/initrdscripts/initramfs-live-install-efi_1.0.bb
meta/recipes-core/initrdscripts/initramfs-live-install_1.0.bb