Bug 2165244

Summary: Fedora 37 iso image boot with grup2 fails
Product: [Fedora] Fedora Reporter: qnyc
Component: loraxAssignee: Brian Lane <bcl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: anaconda-maint-list, bcl, fmartine, lkundrak, pgnet.dev, pjones, reallylongword, rharwood
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-01 23:03:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description qnyc 2023-01-28 20:22:14 UTC
Description of problem:

Trying to boot the Fedora 37 iso with grub2 using a multiboot USB is not working. Fedora 36 and older releases works well with the same config.

The "isolinux" directory (and files) used by the grub2 menu is not present in Fedora 37, while it's in Fedora 36 and previous releases.


Is it possible to know the correct parameters for Fedora 37 to boot?



Version-Release number of selected component (if applicable):

Fedora 37



How reproducible:

Trying to boot the Fedora 37 iso with grub2 (for example, with GLIM tool [1]).


Steps to Reproduce:
1. Install glim in an USB [2].
2. Copy the Fedora 37 image in the "boot/iso/fedora" sub-directory created in the USB.
3. Boot from the USB and select Fedora > Fedora 37



Actual results:

Fails with /isolinux/vmlinuz


Expected results:

Boot Fedora 37 iso from grub2



Additional info:

The "GRUB2 Live ISO Multiboot" (GLIM) [1] allows to have an USB with different isos from different Fedora versions (and even different distributions) with an easy way to update the iso images (it's only needed to remove the old ones and copy the new ones in each directory).

With the changes in the Fedora 37 boot, the commands in the grub2 menu are no longer working for Fedora isos. The grub2 boot commands used with that tool [3]:

    linux (loop)/isolinux/vmlinuz root=live:CDLABEL=${isolabel} rd.live.image iso-scan/filename=${isofile}
    initrd (loop)/isolinux/initrd.img




[1] https://github.com/thias/glim
[2] https://github.com/thias/glim/blob/master/INSTALL.md
[3] https://github.com/thias/glim/blob/master/grub2/inc-fedora.cfg

Comment 1 qnyc 2023-01-28 20:38:29 UTC
To clarify the request:

Is it possible to know the correct parameters for Fedora 37 to boot from grub2 with a tool like GLIM, as "isolinux" directory is no longer included in the ISO image?



In addition to the above, is it possible to select the language when booting the ISO image?
For example, in debian based ISOs, it's possible to use the following parameters for booting[1]:

 "locale=fr_FR bootkbd=fr console-setup/layoutcode=fr"


Are there any equivalent parameters for the Fedora 37 boot?



[1] https://blog.garamotte.net/static/pxe/grub.cfg

Comment 2 Robbie Harwood 2023-02-01 16:45:29 UTC
isolinux is another package (syslinux) and moreover grub2 doesn't create the isos.  I believe Fedora install media was intentionally migrated away from isolinux to grub; maybe lorax can speak more to that.

Comment 3 Brian Lane 2023-02-01 23:03:31 UTC
It should work if you change the path to /images/pxeboot/ instead of /isolinux/, and that path should also work with older releases as well -- the kernel and initrd were hardlinked in both locations before we dropped syslinux support.

There is an inst.lang cmdline option (see https://anaconda-installer.readthedocs.io/en/latest/boot-options.html) that can be used to set the language.

Comment 4 qnyc 2023-02-10 19:16:52 UTC
Thanks Brian, changing isolinux with images/pxeboot worked as the vmlinuz and the initrd.img are there, and the iso can be started from the USB.


Regarding the inst.lang cmdline option, I tried several ways but it didn't worked (based on the link to the anaconda boot options and [1], and 2 for the language):

    linux (loop)/isolinux/vmlinuz root=live:CDLABEL=${isolabel} rd.live.image iso-scan/filename=${isofile} inst.lang=fr_FR

    linux (loop)/isolinux/vmlinuz root=live:CDLABEL=${isolabel} rd.live.image iso-scan/filename=${isofile} inst.lang=fr_FR.UTF-8



And also, tried the inst.keymap option, alone and in combination with the inst.lang (based on your link and [1], and [3] for the keymaps), but not able to made it to work:

    linux (loop)/isolinux/vmlinuz root=live:CDLABEL=${isolabel} rd.live.image iso-scan/filename=${isofile} inst.keymap=fr



Is anything wrong in the above lines? Where the inst.lang and inst.keymap options should be added?



[1] https://docs.fedoraproject.org/en-US/fedora/f36/install-guide/advanced/Boot_Options/
[2] https://pagure.io/system-config-language/blob/main/f/src/locale-list#_59
[3] https://www.commandlinux.com/man-page/man7/xkeyboard-config.7.html

Comment 5 Brian Lane 2023-02-13 17:21:48 UTC
That looks correct to me. You should double check with a normal boot.iso to see if it also fails there, and then file a bug with Anaconda.