-
Notifications
You must be signed in to change notification settings - Fork 145
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
Suggestion: Use loopback.cfg for Ubuntu ISOs #48
Comments
This has been somewhat of a recurrent topic: Some iso images include grub configuration, and often ready to be "chained" using a loopback.cfg file. This allows to jump into the iso's original boot menu, including all options. Pros:
Cons:
This last point is the most important one. The visible case is when returning from the iso's grub into GLIM, where things like fonts and images may be kept from the iso's menu. But that's just the tip of the iceberg, as many set variables will be traveling both ways... One possible solution (or at least improvement) would be to try and re-initialize all of the GLIM grub when returning from an iso grub menu. The existing
Currently, this can be tested with Ubuntu and most of its derivatives:
I actually revisited this today when trying to add support for NixOS (see #120), but the iso's grub, although displaying file, just freezes on all entries. I suspect some variable other than the requires @slowpeek : Do you have any thoughts or insight on this? |
It is there because of the way you create the menus. In stuff like
the menuentry block works in the outer context, hence if you change
Some recent ubuntu live-server isos have loopback.cfg broken (iso-scan/filename= piece is missing). I reported it and it was fixed around Jul 1, 2023 in daily builds. Broken versions: 21.04 21.10 22.04 22.04.1 22.04.2 22.10 23.04. Fixed since: 22.04.3 23.10
It became rly bad with Debian 12. They even use raw Other things aside, the most relevant application for native loopback configs would be Tails since there are security related boot options that change from time to time. But they dont provide loopback.cfg, even though it boots with casper. I asked the devs about providing loopback.cfg but they said it is bad for security. |
Most Ubuntu ISOs have a loopback.cfg menu file which should contain the correct kernel parameters to boot from the ISO. A typical grub2 menu used 'configfile /boot/grub/loopback.cfg' to use it. e.g.
This means that the correct kernel parameters will always be used and you don't need to maintain the menu code,
I suggest you modify the Ubuntu inc menu so that it looks for the loopback file and uses it if it exists - if it does not exist then use the default linux and initrd commands as usual?
The text was updated successfully, but these errors were encountered: