<?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>13921</bug_id>
          
          <creation_ts>2020-05-26 03:59:49 +0000</creation_ts>
          <short_desc>SERIAL_CONSOLES SERIAL_CONSOLES_CHECK</short_desc>
          <delta_ts>2024-01-11 18:45:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>System Startup</product>
          <component>system-startup</component>
          <version>3.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Berger">pokylinux</reporter>
          <assigned_to name="Trevor Gamblin">tvgamblin</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>mark.morton</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>87332</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2020-05-26 03:59:49 +0000</bug_when>
    <thetext>It looks like either the docu is missing something, or I misunderstand something

I use SERIAL_CONSOLES and SERIAL_CONSOLES_CHECK both for SysVinit and systemd. 

For systemd according to [2] SERIAL_CONSOLES_CHECK is not needed. 
The behavior I see is that with systemd on every boot SERIAL_CONSOLES are searched and one is picked from the list. If that&apos;s the case it should be documented a bit better.

For SysVinit indeed only the first time around SERIAL_CONSOLES_CHECK is used to find some serial console which is written into /etc/inittab.

This makes it unsuitable for read-only images and the build breaks if you have SERIAL_CONSOLES_CHECK plus EXTRA_IMAGE_FEATURES += &quot;read-only-rootfs&quot; . (which should be documented as well).

Is there a workaround for read-only images e.g. make the one file writeable.

[1] https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-SERIAL_CONSOLES

[2] https://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#var-SERIAL_CONSOLES_CHECK</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87376</commentid>
    <comment_count>1</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-06-01 07:00:31 +0000</bug_when>
    <thetext>Patch is in on master now: https://git.openembedded.org/openembedded-core/commit/?id=982b7f98b8423236cc986346379b1bde3694f131

Closing this as resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87377</commentid>
    <comment_count>2</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-06-01 07:01:08 +0000</bug_when>
    <thetext>Closed wrong defect by mistake.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87760</commentid>
    <comment_count>3</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2020-07-14 12:49:12 +0000</bug_when>
    <thetext>After doing some reading, I don&apos;t think that there&apos;s a way to achieve this, short of using the https://github.com/cmhe/meta-readonly-rootfs-overlay layer or the methods described there (i.e. sym-links for files that need to change). I&apos;ll talk to Mark and see about getting documentation added for the incompatibility of read-only rootfs with SERIAL_CONSOLES_CHECK for SysVinit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90480</commentid>
    <comment_count>4</comment_count>
    <who name="Trevor Gamblin">tvgamblin</who>
    <bug_when>2021-05-25 16:29:27 +0000</bug_when>
    <thetext>Added to the docs. See: http://docs.yoctoproject.org/ref-manual/variables.html?highlight=serial_consoles_check</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97781</commentid>
    <comment_count>5</comment_count>
    <who name="Robert Berger">pokylinux</who>
    <bug_when>2024-01-11 18:45:01 +0000</bug_when>
    <thetext>Just for completeness and since it was removed:

https://docs.yoctoproject.org/4.0.15/ref-manual/variables.html?highlight=serial_consoles_check#term-SERIAL_CONSOLES_CHECK</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>