tests: Add some extra dhclient support directories to mbuto.img

Although it can operate without them, dhclient can issue errors if it
doesn't have /var/run to write a pid file and /var/lib to write a leases
file.  Create those in mbuto.img to stop it complaining.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2022-07-15 15:21:27 +10:00 committed by Stefano Brivio
parent 1fb2bd6754
commit 66ec441608

View file

@ -21,7 +21,7 @@ LINKS="${LINKS:-
ash,dash,bash /init
ash,dash,bash /bin/sh}"
DIRS="${DIRS} /tmp /sbin /var/log"
DIRS="${DIRS} /tmp /sbin /var/log /var/run /var/lib"
FIXUP="${FIXUP}"'
cat > /sbin/dhclient-script << EOF