From 42f0878f0a131bf58658e808a71cc03d55ba59ae Mon Sep 17 00:00:00 2001 From: Liu Long Date: Thu, 18 Aug 2022 10:58:12 +0800 Subject: [PATCH] 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 --- misc/sample_application/image_builder/create_image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/sample_application/image_builder/create_image.sh b/misc/sample_application/image_builder/create_image.sh index d312a9141..73037ea45 100755 --- a/misc/sample_application/image_builder/create_image.sh +++ b/misc/sample_application/image_builder/create_image.sh @@ -100,7 +100,7 @@ function copy_and_enlarge_image() { qemu-img convert -f qcow2 -O raw ${source_image} ${dest_image} && \ qemu-img resize -f raw ${dest_image} ${size_modifier} && \ - growpart ${dest_image} 1 + LANG=C growpart ${dest_image} 1 } function dump_proxy() { @@ -147,6 +147,7 @@ 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 }