mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-09 03:58:34 +00:00
misc/packaging: remove efi support
Tracked-On: #5022 Signed-off-by: zhanqi <sherry.qi.zhang@intel.com>
This commit is contained in:
parent
53b11d1048
commit
75ecc0e3b1
@ -114,12 +114,6 @@ partuuid=$(echo ${str##*PARTUUID=})
|
|||||||
filename="/etc/grub.d/40_custom"
|
filename="/etc/grub.d/40_custom"
|
||||||
|
|
||||||
kernelimg=$(grep module ${filename}|| true)
|
kernelimg=$(grep module ${filename}|| true)
|
||||||
kernelimg2='/boot/'
|
|
||||||
|
|
||||||
if [ "$kernelimg" ]
|
|
||||||
then
|
|
||||||
kernelimg2=$(echo $kernelimg |cut -d ' ' -f 2)
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat>"${filename}"<<EOF
|
cat>"${filename}"<<EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@ -135,15 +129,6 @@ $kernelimg
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
menuentry 'ACRN efi' --id ACRN_deb_efi {
|
|
||||||
recordfail
|
|
||||||
load_video
|
|
||||||
insmod gzio
|
|
||||||
insmod part_gpt
|
|
||||||
insmod ext2
|
|
||||||
linux $kernelimg2 pci_devices_ignore=(0:18:1) console=tty0 console=ttyS0 root=PARTUUID=$partuuid rw rootwait ignore_loglevel no_timer_check consoleblank=0 i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0 hvlog=2M@0xE00000
|
|
||||||
|
|
||||||
}
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
filename='/etc/default/grub'
|
filename='/etc/default/grub'
|
||||||
|
@ -23,15 +23,6 @@ cat>"${filename}"<<EOF
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
menuentry 'ACRN efi' --id ACRN_deb_efi {
|
|
||||||
recordfail
|
|
||||||
load_video
|
|
||||||
insmod gzio
|
|
||||||
insmod part_gpt
|
|
||||||
insmod ext2
|
|
||||||
linux /boot/kernelimg pci_devices_ignore=(0:18:1) console=tty0 console=ttyS0 root=PARTUUID=$partuuid rw rootwait ignore_loglevel no_timer_check consoleblank=0 i915.nuclear_pageflip=1 i915.avail_planes_per_pipe=0x01010F i915.domain_plane_owners=0x011111110000 i915.enable_gvt=1 i915.enable_guc=0 hvlog=2M@0xE00000
|
|
||||||
|
|
||||||
}
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -39,14 +30,5 @@ EOF
|
|||||||
bzImage=$(cat /boot/version.txt)
|
bzImage=$(cat /boot/version.txt)
|
||||||
sed -i '/multiboot2 \/boot/a\module2 /boot/'${bzImage}' Linux_bzImage' ${filename}
|
sed -i '/multiboot2 \/boot/a\module2 /boot/'${bzImage}' Linux_bzImage' ${filename}
|
||||||
|
|
||||||
str=$(grep hvlog=2M@0xE00000 ${filename} || true)
|
|
||||||
|
|
||||||
old=${str%pci*}
|
|
||||||
echo $old
|
|
||||||
bzImage=$(cat /boot/version.txt)
|
|
||||||
new=$(echo linux \/boot\/${bzImage})
|
|
||||||
echo $new
|
|
||||||
sed -i "s:$old:$new :" ${filename}
|
|
||||||
|
|
||||||
sync
|
sync
|
||||||
update-grub
|
update-grub
|
||||||
|
Loading…
Reference in New Issue
Block a user