help-grub
[Top][All Lists]
Advanced

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

Use the efi file created by grub-mkstandalone to boot isos from harddisk


From: Hongyi Zhao
Subject: Use the efi file created by grub-mkstandalone to boot isos from harddisk.
Date: Sat, 8 Jul 2023 09:34:54 +0800

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.

Regards,
Zhao
-- 
Assoc. Prof. Hongsheng Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province



reply via email to

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