From ca0c33ae5b8a68806dd1c766e2f58ce24867f334 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 10 Jun 2022 12:32:43 +1000 Subject: Tweak dhclient arguments for readability A number of tests and examples use dhclient in both IPv4 and IPv6 modes. We use "dhclient -6" for IPv6, but usually just "dhclient" for IPv4. Add an explicit "-4" argument to make it more clear and explicit. In addition, when dhclient is run from within pasta it usually won't be "real" root, and so will not have access to write the default global pid file. This results in a mostly harmless but irritating error: Can't create /var/run/dhclient.pid: Permission denied We can avoid that by using the --no-pid flag to dhclient. Signed-off-by: David Gibson --- passt.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'passt.1') diff --git a/passt.1 b/passt.1 index d3af916..28704e9 100644 --- a/passt.1 +++ b/passt.1 @@ -484,7 +484,7 @@ udhcpc: started, v1.30.1 udhcpc: sending discover udhcpc: sending select for 192.168.1.118 udhcpc: lease of 192.168.1.118 obtained, lease time 4294967295 -# dhclient -6 +# dhclient -6 --no-pid # ip address show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 @@ -581,7 +581,7 @@ udhcpc: started, v1.30.1 udhcpc: sending discover udhcpc: sending select for 192.168.1.118 udhcpc: lease of 192.168.1.118 obtained, lease time 4294967295 -# dhclient -6 +# dhclient -6 --no-pid # ip address show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 -- cgit v1.2.3