Bug 4746

Summary: invoke "/etc/init.d/systemd-udevd restart" failed
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Hongxu Jia <hongxu.jia>
Component: coreAssignee: Hongxu Jia <hongxu.jia>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: hongxu.jia, kai.kang, liezhi.yang, mark.hatle, meta.mr.watcher, meta.watcher, ning.zhang, Qi.Chen, sen.zhang, sgw, yi.zhao
Version: 1.5   
Target Milestone: 1.5 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Hongxu Jia 2013-06-18 12:02:22 UTC
*env
Build Configuration:
BB_VERSION        = "1.19.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-13.04"
TARGET_SYS        = "i586-poky-linux"
MACHINE           = "emenlow-noemgd"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4+snapshot-20130618"
TUNE_FEATURES     = "m32 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "hongxu-0618-coldplug:1dd643b142c69ac9035e29bff11d02201638dc65"
meta-intel        
meta-emenlow      = "master:c8856e41a418da8080a515c6fbcf4c46765301e3"

vim conf/local.conf
252 DISTRO_FEATURES_append = " systemd"
253 VIRTUAL-RUNTIME_init_manager = "systemd"
254 MACHINE ?= "emenlow-noemgd"

vim conf/bblayers.conf
  8 BBLAYERS ?= " \
  9   /home/jiahongxu/yocto/poky/meta \
 10   /home/jiahongxu/yocto/poky/meta-yocto \
 11   /home/jiahongxu/yocto/poky/meta-yocto-bsp \
 12   /home/jiahongxu/yocto/poky/meta-intel \
 13   /home/jiahongxu/yocto/poky/meta-intel/meta-emenlow \

Machine has internal SSD with sda1/sda2/sda3 partitions.
There are also 3 usb sticks,
A usb stick with partition sdb which is used to boot.

*problem
connect target by ssh and invoke "/lib/systemd/systemd-udevd restart"
root@emenlow-noemgd:~# /etc/init.d/systemd-udevd restart
Stopping udevd
Starting udev
corrupt queue file

root@emenlow-noemgd:~# /etc/init.d/systemd-udevd status
udevd is stopped

*analysis
The process name is systemd-udevd rather than udev which is
used in script "/lib/systemd/systemd-udevd"

root@emenlow-noemgd:~# ps
3805 root      8728 S    /lib/systemd/systemd-udevd

vi /etc/init.d/systemd-udevd
  stop)                                                                                                                                       
    echo "Stopping udevd"                                                                                                                     
    start-stop-daemon --stop --name udevd --quiet                                                                                     
    ;;                                                                                                                                        
  restart)                                                                                                                                    
    $0 stop                                                                                                                                   
    sleep 1                                                                                                                                   
    $0 start                                                                                                                                  
    ;;                                                                                                                                        
  status)                                                                                                                                     
    status udevd                                                                                                                              
    ;;