SampleApplication: Disable the schroot mapping.

Disable the schroot mapping data from native env to the
chroot env.

Tracked-On: #7820
Signed-off-by: Liu Long <long.liu@linux.intel.com>
This commit is contained in:
Liu Long 2022-08-18 10:58:12 +08:00 committed by acrnsi-robot
parent 93b4a6e45d
commit 42f0878f0a
1 changed files with 2 additions and 1 deletions

View File

@ -100,7 +100,7 @@ function copy_and_enlarge_image() {
qemu-img convert -f qcow2 -O raw ${source_image} ${dest_image} && \ qemu-img convert -f qcow2 -O raw ${source_image} ${dest_image} && \
qemu-img resize -f raw ${dest_image} ${size_modifier} && \ qemu-img resize -f raw ${dest_image} ${size_modifier} && \
growpart ${dest_image} 1 LANG=C growpart ${dest_image} 1
} }
function dump_proxy() { function dump_proxy() {
@ -147,6 +147,7 @@ personality=linux
preserve-environment=true preserve-environment=true
EOF EOF
sudo sed -i -e '3,9 s/^/#/' /etc/schroot/default/nssdatabases && \
sudo mv ${temp_file} /etc/schroot/chroot.d/acrn-guest && \ sudo mv ${temp_file} /etc/schroot/chroot.d/acrn-guest && \
sudo chown root:root /etc/schroot/chroot.d/acrn-guest sudo chown root:root /etc/schroot/chroot.d/acrn-guest
} }