Update sample app scripts for Ubuntu 22.04

The switch to Ubuntu 22.04 for ACRN v3.2 requires a few changes to the
sample application scripts:

- user _apt cannot access debian packages in user directories, so copy
  them to /tmp to install
- HMI-VM image size needs to be bigger (running out of space during
  image update)

Tracked-On: #8352

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2022-11-30 10:00:51 -08:00 committed by acrnsi-robot
parent 07bf31da1f
commit e9b4f5bff1
2 changed files with 4 additions and 3 deletions

View File

@ -227,7 +227,7 @@ function cleanup() {
mount_point=$(pwd)/mnt mount_point=$(pwd)/mnt
if [[ ${vm_type} == "hmi-vm" ]]; then if [[ ${vm_type} == "hmi-vm" ]]; then
target_image=${hmi_vm_image} target_image=${hmi_vm_image}
size_modifier="+4G" size_modifier="+5G"
elif [[ ${vm_type} == "rt-vm" ]]; then elif [[ ${vm_type} == "rt-vm" ]]; then
target_image=${rt_vm_image} target_image=${rt_vm_image}
size_modifier="+1G" size_modifier="+1G"
@ -236,7 +236,7 @@ else
exit 1 exit 1
fi fi
try_step "Download Ubuntu Focal cloud image" download_image ${cloud_image} ${cloud_image_url} try_step "Download Ubuntu cloud image" download_image ${cloud_image} ${cloud_image_url}
if [[ ${vm_type} == "rt-vm" ]]; then if [[ ${vm_type} == "rt-vm" ]]; then
try_step "Copy the RT kernel to build directory" copy_rt_kernel try_step "Copy the RT kernel to build directory" copy_rt_kernel
try_step "Check availability of RT kernel image" check_rt_kernel try_step "Check availability of RT kernel image" check_rt_kernel

View File

@ -35,7 +35,8 @@ function install_rt_kernel() {
search_dir=$1 search_dir=$1
for file in $(ls -r ${search_dir}/*acrn-kernel-*.deb) for file in $(ls -r ${search_dir}/*acrn-kernel-*.deb)
do do
sudo apt install ${file} -y cp ${file} /tmp
sudo apt install /tmp/${file##*/} -y
done done
} }