[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Extracting config file from GRUB EFI image
From: |
Andrei Borzenkov |
Subject: |
Re: Extracting config file from GRUB EFI image |
Date: |
Wed, 4 May 2016 06:24:32 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub
>
signature.asc
Description: OpenPGP digital signature
- Extracting config file from GRUB EFI image, SevenBits, 2016/05/03
- Re: Extracting config file from GRUB EFI image,
Andrei Borzenkov <=
- Message not available
- Message not available
- Message not available
- Message not available
- Re: Extracting config file from GRUB EFI image, SevenBits, 2016/05/04
- Re: Extracting config file from GRUB EFI image, Andrei Borzenkov, 2016/05/04
- Re: Extracting config file from GRUB EFI image, hoan, 2016/05/05
- Re: Extracting config file from GRUB EFI image, SevenBits, 2016/05/05
- Re: Extracting config file from GRUB EFI image, hoan, 2016/05/06
- Re: Extracting config file from GRUB EFI image, SevenBits, 2016/05/06