<?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>4632</bug_id>
          
          <creation_ts>2013-06-10 17:18:38 +0000</creation_ts>
          <short_desc>udev 182 init script should mount devtmpfs instead tmpfs</short_desc>
          <delta_ts>2013-07-08 10:41:05 +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>unspecified</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>major</bug_severity>
          <target_milestone>1.5 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Olson">alex.olson</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>33729</commentid>
    <comment_count>0</comment_count>
      <attachid>1255</attachid>
    <who name="Alex Olson">alex.olson</who>
    <bug_when>2013-06-10 17:18:38 +0000</bug_when>
    <thetext>Created attachment 1255
suggested fix

Since udev 172, the &apos;mknod&apos; logic was removed from udev. This means /dev is now required to be a devtmpfs filesystem (maintained by the kernel).    If the root filesystem is a ramdisk,  the kernel&apos;s auto-mount of /dev doesn&apos;t activate since there is no rootfs to actually mount... 

The bug causes an unusuable system as /dev doesn&apos;t contain even basic nodes required to even get a login prompt.


The Yocto  udev/init script mounts tmpfs if it does not detect tmpfs or devtmpfs mounted at /dev.  This appears to be  outdated logic that is no longer correct.

I believe the Yocto udev init script should be checking and mounting only &apos;devtmpfs&apos; on dev.  (But I am not a udev expert).  See attached patch for a suggestion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33737</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-06-10 22:58:39 +0000</bug_when>
    <thetext>This looks like a good patch, if you would please submit a proper patch to list, please do so, otherwise I can put this patch in.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34138</commentid>
    <comment_count>2</comment_count>
    <who name="Alex Olson">alex.olson</who>
    <bug_when>2013-06-25 20:15:36 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This looks like a good patch, if you would please submit a proper patch to
&gt; list, please do so, otherwise I can put this patch in.

I submitted it today to the OE-core list and will monitor the thread.
http://lists.openembedded.org/pipermail/openembedded-core/2013-June/080311.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34231</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-06-28 18:17:15 +0000</bug_when>
    <thetext>Systemd-udev
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f744edc0b8752b20c2a0335aa67312bc3b953507

sysvinit-udev
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d85a997f2c0909788712b9985f5fb93dce880270

Thanks to Alex!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1255</attachid>
            <date>2013-06-10 17:18:38 +0000</date>
            <delta_ts>2013-06-10 17:18:38 +0000</delta_ts>
            <desc>suggested fix</desc>
            <filename>udev-devtmpfs.patch</filename>
            <type>text/plain</type>
            <size>625</size>
            <attacher name="Alex Olson">alex.olson</attacher>
            
              <data encoding="base64">Iy0tLSB1ZGV2L2luaXQub3JpZ2luYWwgMjAxMy0wNS0xOCAxNDozODowOS4wMDAwMDAwMDAgLTA1
MDANCiMrKysgdWRldi9pbml0ICAyMDEzLTA2LTA2IDE0OjIxOjE1Ljg1OTkxODAyMyAtMDUwMA0K
I0BAIC00NCw4ICs0NCw4IEBADQojICAgICAgICAgaGFsdA0KIyAgICAgZmkNCiMgICAgICMgbW91
bnQgdGhlIHRtcGZzIG9uIC9kZXYsIGlmIG5vdCBhbHJlYWR5IGRvbmUNCiMtICAgIExBTkc9QyBh
d2sgJyQyID09ICIvZGV2IiAmJiAoJDMgPT0gInRtcGZzIiB8fCAkMyA9PSAiZGV2dG1wZnMiKSB7
IGV4aXQgMSB9JyAvcHJvYy9tb3VudHMgJiYgew0KIy0gICAgICAgICAgICBtb3VudCAtbiAtbyBt
b2RlPTA3NTUgLXQgdG1wZnMgbm9uZSAiL2RldiINCiMrICAgIExBTkc9QyBhd2sgJyQyID09ICIv
ZGV2IiAmJiAoJDMgPT0gImRldnRtcGZzIikgeyBleGl0IDEgfScgL3Byb2MvbW91bnRzICYmIHsN
CiMrICAgICAgICAgICAgbW91bnQgLW4gLW8gbW9kZT0wNzU1IC10IGRldnRtcGZzIG5vbmUgIi9k
ZXYiDQojICAgICB9DQojICAgICBbIC1lIC9kZXYvcHRzIF0gfHwgbWtkaXIgLW0gMDc1NSAvZGV2
L3B0cw0KIyAgICAgWyAtZSAvZGV2L3NobSBdIHx8IG1rZGlyIC1tIDE3NzcgL2Rldi9zaG0NCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>