Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement loopback for booting disk image files #350

Open
austanss opened this issue May 12, 2024 · 3 comments
Open

Implement loopback for booting disk image files #350

austanss opened this issue May 12, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@austanss
Copy link

austanss commented May 12, 2024

It would be useful and beneficial to allow a user to load disk image files from the local filesystem with a loop-back configuration of some sort. This would be useful to a Linux user who wants to install a distribution that releases in ISO formats, and does not have a dedicated device at hand to write the image to. The grub boot-loader also has an option to setup loop-back images and load EFI executable files from them. This could also be added as a feature without introducing any breaking changes or significant design shifts. This may require a non-trivial effort of code to implement, but the effort does not seem insurmountable in my own view.

Example configuration:

TIMEOUT=3

:Debian Installer
    PROTOCOL=loopback
    SYSTEM=linux
    IMAGE_FORMAT=iso
    IMAGE_PATH=boot:///debian.iso
    

I will take effort to research the codebase on my own merit to investigate the possibilities for these options.

@austanss
Copy link
Author

I've gained a little bit of a grip in this area of the code, and I am experimenting with some changes...

@mintsuki
Copy link
Contributor

The problem, and the reason why this has never been done, is not getting the concept of a loopback device going, but rather the fact that this is not possible to get working without having kernels that cooperate (either by native support, or, like Ventoy does for example, by shipping kernel modules for each individual OS kernel) to support these loopback devices for what is needed to finish booting and beyond.

@austanss
Copy link
Author

austanss commented May 13, 2024

In that context, then, I'll limit myself in scope, for now, to investigating loopback options specifically for booting Linux distributions.

Also, more narrowly, I'll focus on the EFI implementation for now.

I'm hesitant to take difficulty at face value for an answer, but I understand if the maintainers believe that such a feature and the baggage for its implementation is outside the scope of Limine.

EDIT: not too rapidly though.

@mintsuki mintsuki added the enhancement New feature or request label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants