<?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>4214</bug_id>
          
          <creation_ts>2013-04-07 00:06:29 +0000</creation_ts>
          <short_desc>systemd[1]: Failed to mount /run: No such file or directory</short_desc>
          <delta_ts>2013-05-01 15:16:24 +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>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Potential Release note</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yevhen">kirgene</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>elizabeth.flanagan</cc>
    
    <cc>Martin.Jansa</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>srifenbark</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>31644</commentid>
    <comment_count>0</comment_count>
    <who name="Yevhen">kirgene</who>
    <bug_when>2013-04-07 00:06:29 +0000</bug_when>
    <thetext>Seems that &quot;base-files&quot; recipe doesn&apos;t create /run directory.
On my desktop system &quot;/var/run&quot; is a symlink to /run.

Steps to reproduce:
1) Build systemd image.
2) Run image
3) You&apos;ll get error message from systemd and you won&apos;t be able to login.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31687</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-04-08 14:28:24 +0000</bug_when>
    <thetext>Could be a documentation related issue.

Can you also provide your configuration (local.conf). Can you confirm is you have the populate_volatiles script installed?  This would be done via initscripts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31720</commentid>
    <comment_count>2</comment_count>
    <who name="Yevhen">kirgene</who>
    <bug_when>2013-04-08 16:49:11 +0000</bug_when>
    <thetext>Sorry for lack of info.

I do not use initrd.
In my case I write &quot;ext3&quot; filesystem image partition on disk partition, then make chroot and install grub on that partition.
After that I boot from that partition and see systemd error.

Problem disappears when I change &quot;base-files&quot; recipe to create /run directory.

Here is what I use in my local.conf:
===============================
==============================
MACHINE ?= &quot;cedartrail&quot;

LICENSE_FLAGS_WHITELIST = &quot;commercial license_cdv-pvr-driver_1.0.3&quot;
GLIBC_GENERATE_LOCALES = &quot;en_US.UTF-8&quot;

DISTRO_FEATURES_INITMAN = &quot;systemd&quot;
DISTRO_FEATURES = &quot;alsa argp largefile usbgadget usbhost wifi xattr zeroconf 3g x11 ${DISTRO_FEATURES_LIBC} ${DISTRO_FEATURES_INITMAN} opengl&quot;

IMAGE_FSTYPES = &quot;tar.bz2 ext3.xz&quot;
PACKAGE_CLASSES = &quot;package_ipk&quot;
BBMASK = &quot;meta-systemd/meta-efl|meta-systemd/meta-gnome&quot;

==============================
==============================

And the following is content of my &quot;custom-image.bb&quot; class.
========================================================
========================================================
inherit core-image

PR = &quot;r15&quot;

IMAGE_LINGUAS = &quot; &quot;

LICENSE = &quot;MIT&quot;

IMAGE_ROOTFS_SIZE = &quot;8192&quot;

IMAGE_INSTALL = &quot; \
    base-files \
    base-passwd \
    busybox \
    tinylogin \
    kernel-modules \
    &quot;

IMAGE_FEATURES = &quot;ssh-server-openssh splash package-management&quot;

IMAGE_INSTALL += &quot;grub xinit xf86-input-keyboard xserver-xorg cdv-pvr-driver&quot;
========================================================
========================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31764</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-09 13:38:40 +0000</bug_when>
    <thetext>You&apos;re using meta-systemd from meta-oe? I&apos;m guessing this from the BBMASK. Have you tried not using meta-oe? I suspect they might be conflicting with things in OE-Core...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31781</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-04-09 17:09:27 +0000</bug_when>
    <thetext>I don&apos;t suppose you could replicate with current oe-core/poky master?  The way of using systemd has changed: add &quot;systemd&quot; to DISTRO_FEATURES and then assuming you&apos;re using packagegroup-core-boot set VIRTUAL-RUNTIME_init_manager=&quot;systemd&quot; in local.conf.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31884</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-04-11 08:58:08 +0000</bug_when>
    <thetext>No information so we can only assume the guesses about the cause here are correct. The builds we&apos;ve run confirm that systemd is working in our tests too. I&apos;m therefore reprioritising this since it is not a release blocker, it is something we need to release note however. Once release noted, I&apos;d consider this bug resolved. The release note needs to be something like:

&quot;&quot;&quot;
If people are using meta-openembedded, it should be noted that the meta-systemd component of that layer has been superceeded by the systemd support merged into OE-Core so that layer component should not be enabled. Some compatibility issues have been observed if it is.
&quot;&quot;&quot;

Reassigning to Scott for the release note.

Obviously if we&apos;re incorrect about the guesses about meta-oe, please comment as such in the bug and Ross will take a further look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31915</commentid>
    <comment_count>6</comment_count>
    <who name="Yevhen">kirgene</who>
    <bug_when>2013-04-11 11:33:01 +0000</bug_when>
    <thetext>OK, I&apos;m using following layers:
===================
meta-openembedded/meta-oe 
meta-openembedded/meta-networking 
meta-openembedded/meta-systemd 
meta-openembedded/meta-multimedia 
meta-intel 
meta-intel/meta-cedartrail 
openembedded-core/meta 
===================

I don&apos;t use packagegroup-core-boot as I won&apos;t need busybox and support of SystemV init scripts.
I use systemd and it&apos;s enough for my needs.
Also I use connman that do not need ifupdown scripts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31960</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2013-04-11 13:56:17 +0000</bug_when>
    <thetext>Adding Beth because she usually creates the rough release note document that I then clean up.  

Beth - can you be sure to add this note into the raw release notes text file?

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32694</commentid>
    <comment_count>8</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-04-27 09:01:48 +0000</bug_when>
    <thetext>Duplicated stuff in meta-systemd was removed, now there are only .bbappends for components which don&apos;t have systemd support in oe-core and .bbappends to fix upgrade path

http://git.openembedded.org/meta-openembedded/log/meta-systemd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>32812</commentid>
    <comment_count>9</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-05-01 15:16:24 +0000</bug_when>
    <thetext>According to Martin fixed, and documented for 1.4 release notes</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>