From: Roy Marples Date: Wed, 8 Apr 2020 19:12:08 +0000 (+0100) Subject: linux: mount --bind real directory holding /dev/log X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efffe67b3538a03113a4556c1cd51d2a10db6d43;p=thirdparty%2Fdhcpcd.git linux: mount --bind real directory holding /dev/log As systemd has the real socket in /run which doesn't help anyone but itself. --- 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"