help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use the efi file created by grub-mkstandalone to boot isos from hard


From: Andrei Borzenkov
Subject: Re: Use the efi file created by grub-mkstandalone to boot isos from harddisk.
Date: Sat, 8 Jul 2023 07:22:52 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

On 08.07.2023 04:34, Hongyi Zhao wrote:
Hi here,

I want to boot isos from harddisk via the efi file created by
grub-mkstandalone. The  efi file is generated as follows:

$ grub-mkstandalone -O x86_64-efi -o grubx64.efi --modules='lvm fat
ntfs part_msdos part_gpt ext2 btrfs probe regexp search configfile'
boot/grub/grub.cfg=./boot/grub/grub.cfg

Then I make the following directory layout based on the grubx64.efi
created above:

$ tree .
.
└── grub-mkstandalone
     ├── boot
     │   └── grub
     │       └── grub.cfg
     ├── grubx64.efi
     └── iso
         ├── deepin-desktop-community-23-Beta-amd64.iso
         ├── rescatux-0.74.iso
         ├── supergrub2-2.06s1-beta2-multiarch-CD.iso
         ├── systemrescue-10.01-amd64.iso
         ├── ubuntu-23.04-desktop-amd64.iso
         └── ubuntukylin-23.04-desktop-amd64.iso

I would like to know whether it's possible to make an appropriate
grub.cfg in this case, which can scan all the isos automatically under
the iso directory and generate the corresponding menu entries for me
to boot them.


Yes, it is possible. You may look at supergrub which does more or less what you want.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]