Problem building core-image-basic: Cannot create symlink from ./var/run to 'volatile/run'

Submitted by Brandon Stafford on Feb. 16, 2012, 9:21 p.m. | Patch ID: 21343


Message ID
State New
Headers show

Commit Message

Brandon Stafford Feb. 16, 2012, 9:21 p.m.
On Wed, Feb 15, 2012 at 7:36 PM, Mark Hatle <>wrote:

> On 2/15/12 3:21 PM, Brandon Stafford wrote:
>> Hi all,
>> In trying to build core-image-basic for qemuarm, I ran into an error:
>> extract_archive: Cannot create symlink from ./var/run to 'volatile/run':
>> File
>> exists.
>> (The full error message is posted here: )
>> The issue is most likely that something created the directory of
> "/var/run", and then the later base-files attempted to create the symlink
> which caused the failure.


Thanks for the suggestion, Mark.

It appears that dbus is the source of the conflict. If I add /volatile to
the paths, as in the patch below, the error disappears. I can't test it in
actual operation because of subsequent errors.

Is this the right fix?

        chown root:messagebus ${D}${libexecdir}/dbus-daemon-launch-helper
        chmod 4755 ${D}${libexecdir}/dbus-daemon-launch-helper


Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/dbus/
index 2a25256..9dc40cf 100644
--- a/meta/recipes-core/dbus/
+++ b/meta/recipes-core/dbus/
@@ -81,9 +81,9 @@  do_install() {
             > ${D}${sysconfdir}/default/volatiles/99_dbus

-       mkdir -p ${D}${localstatedir}/run/dbus ${D}${localstatedir}/lib/dbus
+       mkdir -p ${D}${localstatedir}/volatile/run/dbus

-       chown messagebus:messagebus ${D}${localstatedir}/run/dbus
+       chown messagebus:messagebus ${D}${localstatedir}/volatile/run/dbus