Re: dhcpcd-9.0.0 released
Roy Marples
Wed Apr 08 19:22:06 2020
On 08/04/2020 18:41, Julian Wollrath wrote:
But that won't work from inside the chroot will it :)
ah, right, sorry.
Here's how to emulate it:
echo test | nc -uU /var/lib/dhcpcd/run/systemd/journal/dev-log
I wonder if it's fixable though. Does this fix it?
mkdir -p /var/lib/dhcpcd/run/systemd/journal
mount --bind /run/systemd/journal /var/lib/dhcpcd/run/systemd/journal
Does it work then?
yes, that does the trick. Thank you!
Nice!
Does this patch fix it! Please remove the prior patch to ensure it works.
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"
Archive administrator: postmaster@marples.name