From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson To: passt-dev@passt.top Subject: [PATCH 03/18] tests: Add rudimentary debugging to dhclient-script Date: Fri, 15 Jul 2022 15:21:26 +1000 Message-ID: <20220715052141.890703-4-david@gibson.dropbear.id.au> In-Reply-To: <20220715052141.890703-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8138212606297860341==" --===============8138212606297860341== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable We now supply a minimal dhclient-script of our own in the mbuto boot image. There are some problems with it, so add some basic logging to help debug it. Signed-off-by: David Gibson --- test/passt.mbuto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/passt.mbuto b/test/passt.mbuto index 500c34f..fb59cec 100755 --- a/test/passt.mbuto +++ b/test/passt.mbuto @@ -21,11 +21,15 @@ LINKS=3D"${LINKS:- ash,dash,bash /init ash,dash,bash /bin/sh}" =20 -DIRS=3D"${DIRS} /tmp /sbin" +DIRS=3D"${DIRS} /tmp /sbin /var/log" =20 FIXUP=3D"${FIXUP}"' cat > /sbin/dhclient-script << EOF #!/bin/sh +LOG=3D/var/log/dhclient-script.log +echo \${reason} \${interface} >> \$LOG +set >> \$LOG + [ -n "\${new_interface_mtu}" ] && ip link set dev \${interface} mtu \$= {new_interface_mtu} =20 [ -n "\${new_ip_address}" ] && ip addr add \${new_ip_address}/\${ne= w_subnet_mask} dev \${interface} --=20 2.36.1 --===============8138212606297860341==--