From 073db18bac7848650e071ee85f2e1ccad6c18c3e Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 23 Mar 2009 09:44:07 +0000 Subject: dbus: fix for read-only rootfs Similar to how it's handled by avahi - Make sure /var/lib/dbus is a symlink to /tmp/dbus. --- package/dbus/S30dbus | 1 + package/dbus/dbus.mk | 2 ++ 2 files changed, 3 insertions(+) diff --git a/package/dbus/S30dbus b/package/dbus/S30dbus index 3b1044bff..d764e2969 100755 --- a/package/dbus/S30dbus +++ b/package/dbus/S30dbus @@ -16,6 +16,7 @@ # Create needed directories. [ -d /var/run/dbus ] || mkdir -p /var/run/dbus [ -d /var/lock/subsys ] || mkdir -p /var/lock/subsys +[ -d /tmp/dbus ] || mkdir -p /tmp/dbus RETVAL=0 diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk index ef5be59b9..b04d67ae5 100644 --- a/package/dbus/dbus.mk +++ b/package/dbus/dbus.mk @@ -52,6 +52,8 @@ $(eval $(call AUTOTARGETS,package,dbus)) $(DBUS_HOOK_POST_INSTALL): $(DBUS_TARGET_INSTALL_TARGET) rm -rf $(TARGET_DIR)/usr/lib/dbus-1.0 + rm -rf $(TARGET_DIR)/var/lib/dbus + ln -sf /tmp/dbus $(TARGET_DIR)/var/lib/dbus $(INSTALL) -m 0755 package/dbus/S30dbus $(TARGET_DIR)/etc/init.d touch $@ -- cgit v1.2.3