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.
