<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4784</bug_id>
          
          <creation_ts>2013-06-27 10:14:40 +0000</creation_ts>
          <short_desc>Allow user to choose boot action in live images</short_desc>
          <delta_ts>2013-07-10 09:14:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>tf+bugs.yocto</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34174</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-06-27 10:14:40 +0000</bug_when>
    <thetext>For now, the action that the live image takes when booting up is totally determined by the LABEL value in the boot parameters (/proc/cmdline). If the LABEL is &apos;boot&apos;, it mounts the root image and boots it; if the LABEL is &apos;install&apos;, it tries to install the root image.
This behaviour is not very convenient for users, from my point of view. What if the user just wants to drop to a shell for troubleshooting? Or the user wants to install the live image while the LABEL is &apos;boot&apos;, which is the default value if we don&apos;t change it in the some conf file like local.conf.
So I think we present to the user a menu, through which he/she could choose the boot action.
The interface would be something like the following:

Boot options:
[1] boot: boot the live image
[2] install: install the live image to a local disk
[3] shell: drop to a shell
Please enter your choice in 6 seconds [or default to *xxx*]:
(P.S. xxx is determined by the LABEL value in /proc/cmdline.) 

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34457</commentid>
    <comment_count>1</comment_count>
    <who name="tf">tf+bugs.yocto</who>
    <bug_when>2013-07-10 08:37:32 +0000</bug_when>
    <thetext>This functionality has always been available, the default LABEL can be modified from the syslinux prompt -- if you want a more user friendly menu and/or longer pause, then you can modify the syslinux config to suit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34458</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-10 08:46:51 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This functionality has always been available, the default LABEL can be
&gt; modified from the syslinux prompt -- if you want a more user friendly menu
&gt; and/or longer pause, then you can modify the syslinux config to suit.

Thanks for providing this info.
Could you please provide a sample configuration here? Such that I can close this bug as WONTFIX.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34459</commentid>
    <comment_count>3</comment_count>
    <who name="tf">tf+bugs.yocto</who>
    <bug_when>2013-07-10 08:59:48 +0000</bug_when>
    <thetext>The code that generates the menu is in the syslinux.bbclass: http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/syslinux.bbclass, I think you should be able to modify what the menu looks like just by by setting up the appropriate variables in the image recipe. (The Yocto syslinux set up could do with some TLC though some day for a nicer looking menu then just the plain text console.)

General syslinux documentation is at http://www.syslinux.org/wiki/index.php/SYSLINUX</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34461</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-10 09:14:40 +0000</bug_when>
    <thetext>Closing this bug as WONTFIX.
Reason detailed by tf in the last comment.

//Chen Qi</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>