Bug 4501 - Image install fails due to missing mtab
Summary: Image install fails due to missing mtab
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.3.2
Hardware: x86 Multiple
: High normal
Target Milestone: 1.3.2
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-16 10:37 UTC by Stoicescu Cornel
Modified: 2013-05-28 14:08 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
screen shot (1.53 MB, image/jpeg)
2013-05-16 10:37 UTC, Stoicescu Cornel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stoicescu Cornel 2013-05-16 10:37:37 UTC
Created attachment 1214 [details]
screen shot

danny: 00ab7c884b614d23a4ce6c17f07c612ecc9c7319

When installing from USB, after selecting the partition for the image to be installed on, the following error appears about missing mtab file: see attached image
Comment 1 Saul Wold 2013-05-16 13:48:17 UTC
This is due the following commit erroneous pulled into Danny 


commit 45e460d0846f0f660128dc06064b597ce40282b3
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date:   Mon Apr 15 11:33:46 2013 -0700

    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]
    
    (From OE-Core rev: 2f5d41f94c53aaf606de66891c37de0dbd86f54b)
    

Reverting this will get the mtab file back
Comment 2 Nitin Kamble 2013-05-16 16:32:43 UTC
FYI, either this commit can be reverted, or the base-files recipe can be updated similar to dylan release.
Comment 3 Ross Burton 2013-05-16 16:43:56 UTC
I've reverted for now.