Mercurial > hg > dhcpcd
changeset 5126:6b34b56cf626 draft
linux: mount --bind real directory holding /dev/log
As systemd has the real socket in /run which doesn't help anyone
but itself.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 08 Apr 2020 20:12:08 +0100 |
| parents | 6f14f7261828 |
| children | 14b737f09947 |
| files | hooks/00-linux |
| diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hooks/00-linux Tue Apr 07 13:18:35 2020 +0100 +++ b/hooks/00-linux Wed Apr 08 20:12:08 2020 +0100 @@ -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"
