SampleApplication: Add dhclient command

1.Add the dhclient for the VM images.
2.Disable the schroot data mapping.

Tracked-On: #7820
Signed-off-by: Liu Long <long.liu@linux.intel.com>
This commit is contained in:
Liu Long 2022-08-17 22:27:01 +08:00 committed by acrnsi-robot
parent 3a1ce77e01
commit d6a9d2315e

View File

@ -146,7 +146,7 @@ profile=desktop
personality=linux
preserve-environment=true
EOF
sudo sed -i -e '3,9 s/^/#/' /etc/schroot/default/nssdatabases
sudo mv ${temp_file} /etc/schroot/chroot.d/acrn-guest && \
sudo chown root:root /etc/schroot/chroot.d/acrn-guest
}
@ -156,6 +156,7 @@ function create_uio_config() {
local temp_file=$(mktemp /tmp/rc.local.XXXX)
cat << EOF > ${temp_file}
dhclient -q
modprobe uio
modprobe uio_pci_generic