04.05.2016 03:57, SevenBits пишет: > I used this command to create a bootable GRUB UEFI image: > > ../grub-mkstandalone -d . -o ~/Desktop/boot.efi --format=x86_64-efi > --grub-mkimage=../grub-mkimage --install-modules="boot linux ext2 normal > configfile lspci ls help echo fat exfat hfs hfsplus part_msdos part_gpt > part_apple terminal sleep loopback normal fixvideo iso9660 loadbios > setvariable applesetos" > /boot/grub/fonts/myfont.pf2='/boot/grub/fonts/unicode.pf2' > /boot/grub/grub.cfg='/home/user/Desktop/grub.cfg' > > Unfortunately, I have accidentally erased the grub.cfg file referenced > in this command and I (stupidly) did not include it in source code with > my rest of my project. > > Is there a way to extract this GRUB configuration file from a built > image? In other words, if I have an image that was built with the above > command, can I extract the configuration file from it? >
You can take https://github.com/arvidjaar/bootinfoscript as example and extract GRUB modules parsing. Modules are in "mods" section of GRUB efi image. I actually started with standalone script to do it, but never had enough incentive to finish. > Thanks for your help. > > > > _______________________________________________ > Help-grub mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/help-grub >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
