From adb047493c3466375369012d5ac016b3098ddbfa Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Fri, 17 Jun 2022 13:40:58 +0800 Subject: [PATCH] FIXME: packaging: generate a grub entry for shared scenario by default The debian package created by misc/packaging today is supposed to add an entry into grub.cfg for the installed hypervisor. Unfortunately, that is done only when the given scenario XML is named shared, partitioned, hybrid or hybrid_rt. In the rest of the cases, no entry is added while the default boot option is still changed to ACRN_deb_multiboot2 which does not exist. As a short-term workaround, this patch adjusts the branching structure of the postinst script so that a grub entry is always generated. The entry for shared scenario is chosen as the default if the scenario XML has a name other than partitioned, hybrid or hybrid_rt. This is a workaround only for release 3.0. In future releases we should migrate to the dpkg-buildpackage using the scripts under debian/. Tracked-On: #7778 Signed-off-by: Junjie Mao --- misc/packaging/acrn-hypervisor.postinst | 34 ++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/misc/packaging/acrn-hypervisor.postinst b/misc/packaging/acrn-hypervisor.postinst index bc7d4ba3d..5d15f1743 100644 --- a/misc/packaging/acrn-hypervisor.postinst +++ b/misc/packaging/acrn-hypervisor.postinst @@ -33,23 +33,7 @@ else fi kernelimg="module2 $service_vm_kernel Linux_bzImage" -if [ $SCENARIO == shared ];then - cat>"${filename}"<"${filename}"<"${filename}"<