Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grub UEFI support #268

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added bootfiles/EFI/BOOT/BOOTX64.EFI
Binary file not shown.
Binary file added bootfiles/EFI/BOOT/efiboot.img
Binary file not shown.
4 changes: 4 additions & 0 deletions bootfiles/boot/grub/grub-stub.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
earch --no-floppy --label linux --set root
set prefix=($root)/boot/grub

configfile /grub.cfg
30 changes: 30 additions & 0 deletions bootfiles/boot/grub/grub.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
insmod efi_gop
insmod efi_uga

insmod gfxterm
insmod gfxterm_background
insmod png

insmod all_video
insmod videotest
insmod videoinfo

serial --unit 4 --speed 9600
terminal_output gfxterm

set pager=1

#set color_normal=black/black
#set color_highlight=black/cyan

background_image -m stretch /linux/boot/bootlogo.png

menuentry --hotkey=l 'Run Linux' {
linux /linux/boot/vmlinuz vga=769 load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 apparmor=0
initrd /linux/boot/initrfs.img
}
menuentry --hotkey=p 'Run Linux Debug' {
linux /linux/boot/vmlinuz vga=769 load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 apparmor=0 debug
initrd /linux/boot/initrfs.img
}

Binary file added bootfiles/boot/grub/x86_64-efi/acpi.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/adler32.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/affs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/afs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/afsplitter.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ahci.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/all_video.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/aout.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/appleldr.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/archelp.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/at_keyboard.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ata.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/backtrace.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/bfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/bitmap.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/bitmap_scale.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/blocklist.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/boot.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/bsd.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/bswap_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/btrfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/bufio.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cat.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cbfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cbls.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cbmemc.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cbtable.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cbtime.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/chain.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cmp.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cmp_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/configfile.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cpio.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cpio_be.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cpuid.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/crc64.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/crypto.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cryptodisk.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/cs5536.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ctz_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/date.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/datehook.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/datetime.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/disk.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/diskfilter.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/div.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/div_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/dm_nv.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/echo.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/efi_gop.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/efi_uga.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/efifwsetup.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/efinet.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ehci.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/elf.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/eval.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/exfat.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/exfctest.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ext2.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/extcmd.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/f2fs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/fat.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/file.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/fixvideo.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/font.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/fshelp.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_arcfour.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_blowfish.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_camellia.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_cast5.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_crc.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_des.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_dsa.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_idea.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_md4.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_md5.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_rfc2268.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_rmd160.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_rsa.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_seed.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_sha1.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_sha256.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_sha512.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_tiger.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_twofish.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gcry_whirlpool.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/geli.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gettext.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gfxmenu.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gfxterm.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gfxterm_menu.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gptsync.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/gzio.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/halt.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/hashsum.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/hdparm.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/hello.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/help.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/hexdump.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/hfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/hfsplus.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/hfspluscomp.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/http.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/iorw.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/iso9660.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/jfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/jpeg.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/json.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/keylayouts.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/keystatus.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ldm.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/legacycfg.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/linux.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/linux16.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/linuxefi.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/loadbios.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/loadenv.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/loopback.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ls.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lsacpi.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lsefi.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lsefimmap.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lsefisystab.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lsmmap.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lspci.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lssal.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/luks.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/luks2.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lvm.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/lzopio.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/macbless.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/macho.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/mdraid09.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/mdraid09_be.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/mdraid1x.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/memdisk.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/memrw.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/minicmd.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/minix.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/minix2.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/minix2_be.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/minix3.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/minix3_be.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/minix_be.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/mmap.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/morse.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/mpi.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/msdospart.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/mul_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/multiboot.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/multiboot2.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/nativedisk.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/net.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/newc.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/nilfs2.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/normal.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ntfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ntfscomp.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/odc.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/offsetio.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ohci.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_acorn.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_amiga.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_apple.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_bsd.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_dfly.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_dvh.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_gpt.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_msdos.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_plan.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_sun.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/part_sunpc.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/parttool.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/password.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/pata.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/pbkdf2.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/pbkdf2_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/pcidump.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/pgp.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/play.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/png.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/priority_queue.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/probe.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/procfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/progress.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/raid5rec.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/raid6rec.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/random.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/rdmsr.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/read.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/reboot.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/regexp.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/reiserfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/relocator.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/romfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/scsi.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/search.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/search_fs_file.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/search_fs_uuid.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/search_label.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/serial.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/setjmp.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/setjmp_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/setpci.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/sfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/shift_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/signature_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/sleep.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/sleep_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/smbios.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/spkmodem.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/squash4.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/strtoull_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/syslinuxcfg.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/tar.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/terminal.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/terminfo.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/test_blockarg.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/testload.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/testspeed.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/tftp.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/tga.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/time.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/tpm.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/tr.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/trig.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/true.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/udf.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ufs1.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ufs1_be.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/ufs2.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/uhci.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/usb.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/usb_keyboard.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/usbms.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/usbserial_ftdi.mod
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/usbtest.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/video.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/video_bochs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/video_cirrus.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/video_colors.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/video_fb.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/videoinfo.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/videotest.mod
Binary file not shown.
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/wrmsr.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/xfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/xnu.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/xnu_uuid.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/xnu_uuid_test.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/xzio.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/zfs.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/zfscrypt.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/zfsinfo.mod
Binary file not shown.
Binary file added bootfiles/boot/grub/x86_64-efi/zstd.mod
Binary file not shown.
33 changes: 18 additions & 15 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ if [ "$(mksquashfs 2>&1 | grep "Xdict-size")" = "" ]; then
exit 1
fi

MKISOFS=$(which mkisofs)
if [ "$MKISOFS" = "" ]; then
MKISOFS=$(which genisoimage)
fi
if [ "$MKISOFS" = "" ]; then
echo "Cannot find mkisofs or genisoimage, stop"
XORRISO=$(which xorriso)
ISOHYBRID=$(which isohybrid)

if [[ -z ${XORISO} && -z ${ISOHYBRID} ]]; then
echo "Cannot find xorisso and/or isohybrid, stop"
exit 3
fi

Expand Down Expand Up @@ -56,10 +55,11 @@ cat bootfiles/bootinst.bat | sed -r "s:/boot/:/$LIVEKITNAME/boot/:" | sed -r "s:
cp $VMLINUZ $BOOT/ || exit

# UEFI booting
mkdir -p $BOOT/EFI/Boot
cp bootfiles/EFI/Boot/syslinux.efi $BOOT/EFI/Boot/bootx64.efi
cp bootfiles/EFI/Boot/{ldlinux.e64,menu.c32,libutil.c32,vesamenu.c32,libcom32.c32} $BOOT/EFI/Boot
cat $BOOT/syslinux.cfg | sed -r "s:/$LIVEKITNAME/boot/vesamenu:vesamenu:" > $BOOT/EFI/Boot/syslinux.cfg
mkdir -p ${LIVEKITDATA}/EFI/BOOT
mkdir -p ${LIVEKITDATA}/boot/grub/x86_64-efi
cp bootfiles/EFI/BOOT/* ${LIVEKITDATA}/EFI/BOOT
cp bootfiles/boot/grub/grub.cfg ${LIVEKITDATA}/boot/grub
cp bootfiles/boot/grub/x86_64-efi/*.mod ${LIVEKITDATA}/boot/grub/x86_64-efi

# create compressed 01-core.sb
COREFS=""
Expand All @@ -78,11 +78,14 @@ TARGET=/tmp

cat "$CWD/bootinfo.txt" | fgrep -v "#" | sed -r "s/mylinux/$LIVEKITNAME/" | sed -r "s/\$/\x0D/" > readme.txt

echo cd $LIVEKITDATA '&&' $MKISOFS -o "$TARGET/$LIVEKITNAME-$ARCH.iso" -v -J -R -D -A "$LIVEKITNAME" -V "$LIVEKITNAME" \
-no-emul-boot -boot-info-table -boot-load-size 4 \
-b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \
> $TARGET/gen_"$LIVEKITNAME"_iso.sh
chmod o+x $TARGET/gen_"$LIVEKITNAME"_iso.sh
echo cd $LIVEKITDATA '&&' ${XORRISO} -as mkisofs -o "${TARGET}/${LIVEKITNAME}-${ARCH}.iso" \
-U -r -v -T -J -joliet-long -A "${LIVEKITNAME}" -V "${LIVEKITNAME}" -volset "${LIVEKITNAME}" \
-b "${LIVEKITNAME}/boot/isolinux.bin" -c "${LIVEKITNAME}/boot/boot.cat" \
-no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot \
-e /EFI/BOOT/efiboot.img -no-emul-boot . '&&' \
${ISOHYBRID} --uefi "${TARGET}/${LIVEKITNAME}-${ARCH}.iso" \
> ${TARGET}/gen_"${LIVEKITNAME}"_iso.sh
chmod +x ${TARGET}/gen_"${LIVEKITNAME}"_iso.sh

echo cd $LIVEKITDATA '&&' zip -0 -r "$TARGET/$LIVEKITNAME-$ARCH.zip" '*' \
> $TARGET/gen_"$LIVEKITNAME"_zip.sh
Expand Down
16 changes: 15 additions & 1 deletion initramfs/init
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,21 @@ modprobe_everything -v /drivers/net/

# initialize blkid cache file
init_blkid_cache

debug_shell
# If iso is loaded through ventoy, execute ventoy hook script.
# Creates mapper device: /dev/mapper/ventoy (which is a simlink to /dev/dm-0)
if [[ -d /ventoy ]]
then
# init_devs must be executed again, otherwise disk devices are not available yet
# But these are required for the ventoy disk mount hook
. /ventoy/hook/ventoy-hook-lib.sh
while [[ $(get_ventoy_disk_name) == "unknown" ]]
do
init_devs
done
/ventoy/busybox/sh /ventoy/hook/debian/disk_mount_hook.sh
fi
debug_shell
# find data dir with filesystem bundles
DATA="$(find_data 45 "$DATAMNT")"
check_data_found "$DATA"
Expand Down
7 changes: 7 additions & 0 deletions initramfs/initramfs_create
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@ copy_including_deps /$LMK/kernel/drivers/ata
copy_including_deps /$LMK/kernel/drivers/nvme
copy_including_deps /$LMK/kernel/drivers/mmc

# Required for running in Hyper-v VM
copy_including_deps /$LMK/kernel/drivers/input/serio/hyperv-keyboard.*
copy_including_deps /$LMK/kernel/drivers/scsi/hv_storvsc.ko

# Required for ventoy support
copy_including_deps /$LMK/kernel/drivers/md

# network support drivers
if [ "$NETWORK" = "true" ]; then
# add all known ethernet drivers
Expand Down
108 changes: 108 additions & 0 deletions tools/uefi_grub.update
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
#! /bin/bash

set -e

# Function to install packages if not installed yet
function install_package () {
if [[ -z `dpkg -l ${1}|grep -E '^ii'` ]]
then
apt install --yes ${1}
fi
}

# Check if the script is executed from the bootfiles directory
if [[ ${PWD/*\/} != "bootfiles" ]]
then
>&2 echo "Error: execute this script from within the bootfiles directory"
exit 1
fi

# Read config file
if [[ -e ../config ]]
then
. ../config
fi

# Ensure that LIVEKITNAME is set, otherwise assing to default value linux
LVIVEKITNAME=${LIVEKITNAME:="linux"}


if [[ -d EFI/BOOT ]] then rm -rf EFI/BOOT; fi
if [[ -d boot/grub ]] then rm -rf boot/grub; fi

mkdir -p EFI/BOOT
mkdir -p boot/grub/x86_64-efi

# Ensure that the x86_64 modules are installed
install_package "grub-efi-amd64-bin"

cp /usr/lib/grub/x86_64-efi/*.mod boot/grub/x86_64-efi/

# Basic grub config included in UEFI boot image
# Tries to find the cdrom, which should match the value
# of LIVEKITNAME
cat << EOF > boot/grub/grub-stub.cfg
earch --no-floppy --label ${LIVEKITNAME} --set root
set prefix=(\$root)/boot/grub

configfile /grub.cfg
EOF

# Generate UEFI boot image with support of the included modules below
grub-mkimage \
-o EFI/BOOT/BOOTX64.EFI \
-c boot/grub/grub-stub.cfg \
-p /boot/grub \
-O x86_64-efi \
search iso9660 configfile normal memdisk tar boot linux part_msdos part_gpt \
part_apple configfile help loadenv ls reboot chain search_fs_uuid multiboot \
fat iso9660 udf ext2 btrfs ntfs reiserfs xfs lvm ata


# Generate ESP image, which will contain the the UEFI Boot image
dd if=/dev/zero of=EFI/BOOT/efiboot.img bs=512 count=2880

# Format the ESP image
mkfs.msdos -F 12 -n "${LIVEKITNAME^^}" EFI/BOOT/efiboot.img

# Install mtoools, which contain the mmd and mcopy command to direct add
# directories and files to the ESP image file
install_package "mtools"

mmd -i EFI/BOOT/efiboot.img ::EFI
mmd -i EFI/BOOT/efiboot.img ::EFI/BOOT
mcopy -i EFI/BOOT/efiboot.img EFI/BOOT/BOOTX64.EFI ::EFI/BOOT/

# Generate grub.cfg
cat << EOF > boot/grub/grub.cfg
insmod efi_gop
insmod efi_uga

insmod gfxterm
insmod gfxterm_background
insmod png

insmod all_video
insmod videotest
insmod videoinfo

serial --unit 4 --speed 9600
terminal_output gfxterm

set pager=1

set color_normal=black/black
set color_highlight=black/cyan

background_image -m stretch /${LIVEKITNAME}/boot/bootlogo.png

menuentry --hotkey=l 'Run Linux' {
linux /${LIVEKITNAME}/boot/vmlinuz vga=769 load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 apparmor=0
initrd /${LIVEKITNAME}/boot/initrfs.img
}
menuentry --hotkey=p 'Run Linux Debug' {
linux /${LIVEKITNAME}/boot/vmlinuz vga=769 load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 apparmor=0 debug
initrd /${LIVEKITNAME}/boot/initrfs.img
}

EOF