This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # grub2-mkimage --directory '/usr/lib/grub/x86_64-efi' --prefix '(memdisk)/boot/grub' --output 'bootx64.efi' --format 'x86_64-efi' --compression 'auto' --memdisk 'memdisk/memdisk.tar' 'memdisk' 'tar' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd memdisk | |
| tar cf memdisk.tar * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set timeout=5 | |
| menuentry 'Linux diskless' --class os { | |
| insmod all_video | |
| set gfxpayload=keep | |
| insmod net | |
| insmod efinet | |
| insmod tftp | |
| insmod http | |
| insmod gzio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p memdisk/boot/grub/x86_64-efi/ | |
| cp /usr/lib/grub/x86_64-efi/*.mod memdisk/boot/grub/x86_64-efi/ | |
| cp /usr/lib/grub/x86_64-efi/*.o memdisk/boot/grub/x86_64-efi/ | |
| cp /usr/lib/grub/x86_64-efi/*.lst memdisk/boot/grub/x86_64-efi/ | |
| cp /usr/lib/grub/x86_64-efi/*.sh memdisk/boot/grub/x86_64-efi/ | |
| cp /boot/vmlinuz memdisk/boot/ | |
| cp /boot/initrd.img memdisk/boot/ |