@echo off
set modules="biosdisk pc gpt search linux _linux boot cat cpuid _chain chain halt help ls reboot fat ntfs ntfscomp ext2 jfs reiserfs xfs"
set boot="lnxboot.img"
echo modules: %modules%
echo boot: %boot%
grub-mkimage -d . -o core.img --prefix / %modules%
copy /b %boot%+core.img g2ldr
pause