From cd80f2a0af4c179ae5b20b8580d98da6ebb11e16 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 8 Apr 2020 20:12:08 +0100 Subject: [PATCH] linux: mount --bind real directory holding /dev/log As systemd has the real socket in /run which doesn't help anyone but itself. --- hooks/00-linux | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hooks/00-linux b/hooks/00-linux index b3bf1f50..f2a09213 100644 --- a/hooks/00-linux +++ b/hooks/00-linux @@ -1,7 +1,13 @@ # setup chroot mounts if [ "$reason" = CHROOT ] && [ -n "$chroot" ]; then - for d in /dev /proc /sys /run/udev; do + # Special case /dev/log + if [ -h /dev/log ]; then + devlogdir=$(dirname $(readlink /dev/log)) + else + devlogdir= + fi + for d in /dev /proc /sys /run/udev $devlogdir; do [ -d "$d" ] || continue if ! mountpoint -q "$chroot$d"; then mkdir -p "$chroot$d" -- 2.47.3