deb-pkg: rename acrn-sos to acrn-service-vm

Rename acrn-sos to acrn-service-vm

Tracked-On: #6688

Signed-off-by: Hu Fenglin <fenglin.hu@intel.com>
This commit is contained in:
Hu Fenglin 2022-01-04 10:39:41 +08:00 committed by acrnsi-robot
parent 1adbf3293b
commit d29a6e08b4
1 changed files with 4 additions and 4 deletions

View File

@ -27,10 +27,10 @@ while IFS= read -r line; do
fi
done < <(blkid |grep ext4 |grep ${type})
if ls /boot/vmlinuz*acrn-sos* 1> /dev/null 2>&1;then
sos_kernel=$(ls -tr /boot/vmlinuz-*acrn-sos* | tail -1)
if ls /boot/vmlinuz*acrn-service-vm* 1> /dev/null 2>&1;then
service_vm_kernel=$(ls -tr /boot/vmlinuz-*acrn-service-vm* | tail -1)
else
sos_kernel=$(ls /boot/vmlinuz-* | tail -1)
service_vm_kernel=$(ls /boot/vmlinuz-* | tail -1)
fi
if [ -z "$menu" ];then
@ -51,6 +51,6 @@ EOF
fi
sed -i '/Linux_bzImage/d' ${filename} || true
sed -i '/multiboot2 \/boot/a\module2 '$sos_kernel' Linux_bzImage' ${filename}
sed -i '/multiboot2 \/boot/a\module2 '$service_vm_kernel' Linux_bzImage' ${filename}
sync