summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openstack-neutron.configure9
1 files changed, 9 insertions, 0 deletions
diff --git a/openstack-neutron.configure b/openstack-neutron.configure
index 9097336d..5b71c09c 100644
--- a/openstack-neutron.configure
+++ b/openstack-neutron.configure
@@ -56,3 +56,12 @@ for service in ${services[@]}; do
ln -sf "/etc/systemd/system/$service" \
"$ROOT/etc/systemd/system/multi-user.target.wants/$service"
done
+
+#############################################
+# Ensure /var/run is an appropriate symlink #
+#############################################
+
+if ! link="$(readlink "$ROOT/var/run")" || [ "$link" != ../run ]; then
+ rm -rf "$ROOT/var/run"
+ ln -s ../run "$ROOT/var/run"
+fi