aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2016-06-24 16:03:18 -0700
committerAndy Lutomirski <luto@kernel.org>2016-06-24 16:03:18 -0700
commit5e805f51963b98f7cf9191ea2cede31a6ed3487e (patch)
tree8fded3dbc6bd86ea331a4a4cd7942486d309e6be
parentea58d4232b5c0a77a30a244280c35e6a18525f0a (diff)
downloadvirtme-5e805f51963b98f7cf9191ea2cede31a6ed3487e.tar.gz
virtme-init: Forcibly create /run/dbus
This makes dbus a bit more reliable, which improves the (low) chance that a full graphical session works correctly inside virtme. Signed-off-by: Andy Lutomirski <luto@kernel.org>
-rwxr-xr-xvirtme/guest/virtme-init3
1 files changed, 3 insertions, 0 deletions
diff --git a/virtme/guest/virtme-init b/virtme/guest/virtme-init
index 541ecaf..bd03c3b 100755
--- a/virtme/guest/virtme-init
+++ b/virtme/guest/virtme-init
@@ -90,6 +90,9 @@ tmpfiles=`which systemd-tmpfiles 2>/dev/null` && {
systemd-tmpfiles --create --boot --exclude-prefix="/dev"
}
+# Make dbus work (if tmpfiles wasn't there or didn't create the directory).
+install -d /run/dbus
+
# Try to get udevd to coldplug everything.
# We could use virtme-loadmods as a lightweight alternative.
if [[ -n "$udevd" ]]; then