Bug 1146

Summary: udevd daemon doesn't exist since second boot
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Dongxiao Xu <dongxiao.xu>
Component: coreAssignee: Dongxiao Xu <dongxiao.xu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw, yi.zhao
Version: unspecified   
Target Milestone: 1.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Dongxiao Xu 2011-06-07 01:52:33 UTC
On the first time of system boot, udevd does exist, and it could be shown in "ps ax | grep udevd". However since the second boot, the daemon no longer exists, which will have problems for creating the /dev/ nodes.
Comment 1 Dongxiao Xu 2011-06-07 01:54:53 UTC
Root cause is the udev script, where it has a piece of code:

if [ -e /etc/dev.tar ]; then
        (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp')
        not_first_boot=1
fi


The grep command will return 1 if not found the "time stamp", which cause the udevd start failure.

I will commit a patch to fix it.
Comment 2 Saul Wold 2011-06-08 11:03:51 UTC
Holger Freyther <holger@...> writes:

> > #!/bin/sh -e
> > ...
> > if [ -e /etc/dev.tar ]; then 
> >         (cd /; tar xf /etc/dev.tar 2>&1 | grep -v 'time stamp')
> >         not_first_boot=1
> > fi
Okay, it is efce51ec11cc2a908833e80b65d2f5db81bb2fec which only works
if the time is broken... I assume one wants to add an || true or such to the
command.

_______________________________________________
poky mailing list
poky@yoctoproject.org
https://lists.yoctoproject.org/listinfo/poky
Comment 4 Yi Zhao 2011-06-16 23:04:43 UTC
Verified it with 20110613 build

Image location:
http://autobuilder.yoctoproject.org/nightly/20110613-1/
Tree/Branch: Poky/master
Commit: e5f3cc34df74c08c8cab3e1cf9207fafaec6cb9a