tests: Let Fedora find dhclient-script in /usr/sbin

Modern Fedora (and RHEL) systems have /sbin as a symlink to /usr/sbin
(along with a number of similar links).  Along with that it expects to
find dhclient-script in /usr/sbin/dhclient-script rather than
/sbin/dhclient-script.

Link them together in our mbuto image so that the Fedora build of dhclient
can find it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2022-07-15 15:21:25 +10:00 committed by Stefano Brivio
parent 089707f520
commit e6e2e30c34

View file

@ -41,6 +41,7 @@ FIXUP="${FIXUP}"'
exit 0
EOF
chmod 755 /sbin/dhclient-script
ln -s /sbin /usr/sbin
:> /etc/fstab
sh +m
'