diff --git a/misc/packaging/acrn-hypervisor.preinst b/misc/packaging/acrn-hypervisor.preinst deleted file mode 100644 index d5a77cb63..000000000 --- a/misc/packaging/acrn-hypervisor.preinst +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/bash -#* Copyright (c) 2020 Intel Corporation SPDX-License-Identifier: BSD-3-Clause -# preinst script for acrn-hypervisor - -acrnnative=$(ls /sys/class/ |grep vhm || true) -if [ -z "$acrnnative" ] -then - echo "You are in ubuntu, let's pre-check whether fit acrn needs" -else - echo "You are in acrn already, no need pre-check " - exit 0 -fi - -#check vt -vtd=$(ls -al /sys/firmware/acpi/tables |grep DMAR || true) -if [ -z "$vtd" ] -then - echo "Error ! VT-d not enabled!" - echo "This CPU does not support VT-d or it's not enabled through BIOS settings" -fi -vtx=$(lscpu |grep VT-x) - -if [ -z "$vtx" ] -then - echo "Error ! VT-x not enabled!" - echo "This CPU does not support VT-x or it's not enabled through BIOS settings" -fi - -echo "VT-x/VT-d config is ok" - -#check cpu - -cputype=$(lscpu |awk '$1 == "Model"'|grep Core || true) -if [ -z "$cputype" ] -then - echo "CPU type not Core" - echo "Xeon Processors are not supported!" - echo "Warning ! ACRN may not support your hardware!" -else - echo "cpu type is ok" -fi - - -#check memory -totalmemry=200000000000 - -wholememory=$(cat /proc/meminfo |grep MemTotal:|awk '{print $2}') - -if [[ $wholememory -gt $totalmemry ]] -then - echo "Warning ! memory is greater than 16G, please rebuild hypervisor" - echo "if you had rebuild version please ignore" -else - echo "memory is ok, $wholememory" -fi diff --git a/misc/packaging/gen_acrn_deb.py b/misc/packaging/gen_acrn_deb.py index ef9e1f86c..f58afd568 100644 --- a/misc/packaging/gen_acrn_deb.py +++ b/misc/packaging/gen_acrn_deb.py @@ -104,7 +104,6 @@ def create_acrn_deb(board, scenario, version, build_dir): run_command('chmod +x ./build/acrn_release_deb/etc/grub.d/100_ACRN', cur_dir) run_command('chmod +x ./build/acrn_release_deb/DEBIAN/postinst', cur_dir) run_command('sed -i \'s/\r//\' ./build/acrn_release_deb/DEBIAN/postinst', cur_dir) - run_command('cp ./misc/packaging/acrn-hypervisor.preinst ./build/acrn_release_deb/DEBIAN/preinst', cur_dir) run_command('chmod +x ./build/acrn_release_deb/DEBIAN/preinst', cur_dir) run_command('sed -i \'s/\r//\' ./build/acrn_release_deb/DEBIAN/preinst', cur_dir) diff --git a/misc/packaging/install_uSoS.py b/misc/packaging/install_uSoS.py index 26cff3ab8..752a406b8 100644 --- a/misc/packaging/install_uSoS.py +++ b/misc/packaging/install_uSoS.py @@ -339,7 +339,6 @@ def create_acrn_deb(): add_cmd_list(cmd_list, 'chmod +x acrn_release_deb/DEBIAN/postinst', cur_dir) add_cmd_list(cmd_list, 'sed -i \'s/\r//\' acrn_release_deb/DEBIAN/postinst', cur_dir) - add_cmd_list(cmd_list, 'cp acrn-hypervisor.preinst acrn_release_deb/DEBIAN/preinst', cur_dir) add_cmd_list(cmd_list, 'chmod +x acrn_release_deb/DEBIAN/preinst', cur_dir) add_cmd_list(cmd_list, 'sed -i \'s/\r//\' acrn_release_deb/DEBIAN/preinst', cur_dir)