From c60a3600d60802d5163c93ee8776a7af378df2f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Mon, 13 Feb 2017 16:34:32 +0100 Subject: [PATCH] Work-around systemctl bug that resulted in missing pulseaudio symlinks --- kali-config/common/hooks/live/kali-hacks.chroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kali-config/common/hooks/live/kali-hacks.chroot b/kali-config/common/hooks/live/kali-hacks.chroot index 557d6c5..7680aa6 100755 --- a/kali-config/common/hooks/live/kali-hacks.chroot +++ b/kali-config/common/hooks/live/kali-hacks.chroot @@ -8,7 +8,9 @@ fi # Manually enabling pulseaudio for root since autospawning does # not work for root # See https://bugs.kali.org/view.php?id=2392 -systemctl --user enable pulseaudio.service || true +XDG_RUNTIME_DIR=/run/user/0 systemctl --user enable pulseaudio.service || true +# Note that XDG_RUNTIME_DIR is just a work-around for +# https://github.com/systemd/systemd/issues/5260 until we have systemd 133 # Disable the udev rules renaming the network interfaces (can also be # achieved with kernel command line net.ifnames=0 but we don't have a nice