Skip to content

Commit

Permalink
build/base: symlink dbus only in /run/dbus
Browse files Browse the repository at this point in the history
In previous patches, we symblinked all /run to /var/run but it broke
some services like cloud-init: some symlinks were using relative paths
in /run and because of the symlink to /var/run, cloud-init was broken
(maybe and for sure other services thinkin they are in /run).

[root@os-ci-test4 ~]# ls -al /run/cloud-init/
total 0
drwxr-xr-x  2 root root  60 Aug 21 06:47 .
drwxr-xr-x 24 root root 720 Aug 21 06:47 ..
lrwxrwxrwx  1 root root  36 Aug 21 06:47 status.json ->
../../var/lib/cloud/data/status.json
[root@os-ci-test4 ~]# ls -al /var/run/cloud-init/
total 0
drwxr-xr-x  2 root root  60 Aug 21 06:47 .
drwxr-xr-x 24 root root 720 Aug 21 06:47 ..
lrwxrwxrwx  1 root root  36 Aug 21 06:47 status.json ->
../../var/lib/cloud/data/status.json

This patch create a symlink from /var/run/dbus/system_bus_socket to
/run/dbus/ because it's today the only one issue we had in the
deployment of RHEL7.

Signed-off-by: Emilien Macchi <[email protected]>
  • Loading branch information
Emilien Macchi committed Aug 21, 2014
1 parent 70368ab commit bf0c182
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/base.install
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,10 @@ systemd_fix() {
case "$dist" in
$supported_centos_dists|$supported_redhat_dists)
if [ $CODENAME_MAJOR = 7 ]; then
if [ -d $target/run ]; then
rm -rf $target/run
if [ -d $target/run/dbus ]; then
rm -rf $target/run/dbus
fi
do_chroot $target ln -sf /var/run /
do_chroot $target ln -sf /var/run/dbus/system_bus_socket /run/dbus/
fi
;;
esac
Expand Down

0 comments on commit bf0c182

Please sign in to comment.