Detect ISOs on all MultiOS-USB partitions#49
Conversation
This is the biggest problem. In general, the way ISO files are searched for is very slow and should be changed. I didn’t expect the project to grow this much. It was meant to be a temporary solution. |
|
Maybe a solution for a more performant file detection can be inspired from https://github.com/thias/glim? |
I started doing something similar a while ago. For now, I'll accept your changes - they might be useful. |
|
Hello @Mexit, congratulations on your successful work. I'd like to suggest an idea. Why not use an autoiso.cfg file to find and boot from ISO images in any folder on all HDD/USB partitions? I tried it and did some tests, it was quite successful. |
This PR adds detection of ISOs in /ISOs on any partition of the MultiOS-USB device. Useful if the user wants a separate partition to boot large ISO files like Ubuntu or Windows from a partition with a different filesystem that is supported by the ISO environments.
I have tested the following to check if it works as expected:
In many of the config files a parameter has been added to the submenus, to set
iso_pathto a relative path (/ISOs/distro.iso) instead of an absolute path (like(hd1,gpt2)/ISOs/distro.iso) that only GRUB can parse.Potential downsides:
($dev,*)it could be that with more partitions the search/detection of ISOs will take longer. Perhaps a better solution would be to run a for loop for all devices from the main grub cfg.