uefibios-test

This commit is contained in:
milisman 2016-08-16 00:54:57 +03:00
parent 34ee0ffb64
commit aec6a14ba7
6 changed files with 63 additions and 0 deletions

BIN
OVMF.fd Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,16 @@
insmod usbms
insmod usb_keyboard
insmod part_gpt
insmod part_msdos
insmod fat
insmod iso9660
insmod udf
insmod ext2
insmod reiserfs
insmod ntfs
insmod hfsplus
insmod linux
insmod chain
search --file --no-floppy --set=milislive "/boot/grub/grub_milis.cfg"
source "(${milislive})/boot/grub/grub_milis.cfg"

View File

@ -0,0 +1,46 @@
set pager="1"
set locale_dir="(${milislive})/boot/grub/locale"
if [ -e "${prefix}/${grub_cpu}-${grub_platform}/all_video.mod" ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus
fi
insmod font
if loadfont "(${milislive})/boot/grub/fonts/unicode.pf2" ; then
insmod gfxterm
set gfxmode="auto"
terminal_input console
terminal_output gfxterm
insmod png
background_image "(${milislive})/boot/isolinux/back.jpg"
fi
if [ cpuid -l ]; then
menuentry "Milis_Linux 4.4.6-milis-lts (x86_64)" {
set gfxpayload="keep"
linux (${milislive})/boot/kernel \
root=live:CDLABEL=MILIS_LIVE ro \
rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \
vconsole.unicode=1 vconsole.keymap=tr \
locale.LANG=tr_TR.UTF-8
initrd (${milislive})/boot/initramfs
}
menuentry "Milis_Linux 4.4.6-milis-lts (x86_64) (RAM)" {
set gfxpayload="keep"
linux (${milislive})/boot/kernel \
root=live:CDLABEL=MILIS_LIVE ro \
rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 gpt add_efi_memmap \
vconsole.unicode=1 vconsole.keymap=tr \
locale.LANG=tr_TR.UTF-8 rd.live.ram
initrd (${milislive})/boot/initramfs
}
fi

1
qemu-uefibios.sh Executable file
View File

@ -0,0 +1 @@
qemu-system-x86_64 --enable-kvm -bios OVMF.fd -m 1024 $1