Skip to content

Alma/Rocky Linux 9 support #57

Description

@pacofelc

Hey, Rocky Linux 9 is already out. Is there any chance it gets added to installimage?
Thank's in advance.

Activity

  1. asciiprod commented on Nov 2, 2022

    @asciiprod
    Collaborator

    Yes, eventually support will be added.

  2. changed the title [-]Rocky Linux 9 support[/-] [+]Alma/Rocky Linux 9 support[/+] on May 16, 2023
  3. locked as too heated and limited conversation to collaborators on May 16, 2023
  4. asciiprod commented on May 31, 2023

    @asciiprod
    Collaborator

    installimage includes limited support for RHEL9-based images since 38226a5
    However due to shim unconditionally modifying the boot order and being unremovable as an essential package, support for RHEL-based images will be limited.

    Also see: rhboot/shim#568

  5. unlocked this conversation on May 31, 2023
  6. leetsin commented on Jun 1, 2023

    @leetsin

    Thanks a lot Hetzner People 👍😎

    @asciiprod as you have custom motherboards, will a custom bios(uefi) solve the net boot problem ?

  7. kleisauke commented on Sep 12, 2023

    @kleisauke

    and being unremovable as an essential package

    shim is in fact removable, it's only marked as protected after commit https://src.fedoraproject.org/rpms/shim/c/f4bf84f7c52ca6b105e03ad22ef3f891d6b37364.

    One could remove shim by executing:

    $ dnf remove --setopt=protected_packages= "shim-*"
  8. asciiprod commented on Oct 24, 2023

    @asciiprod
    Collaborator

    While that may allow removing shim, grub has been modified in these distributions and can no longer create an EFI binary.
    https://bugzilla.redhat.com/show_bug.cgi?id=1917213

  9. kleisauke commented on Oct 24, 2023

    @kleisauke

    While that may allow removing shim, grub has been modified in these distributions and can no longer create an EFI binary.
    https://bugzilla.redhat.com/show_bug.cgi?id=1917213

    According to https://bugzilla.redhat.com/show_bug.cgi?id=1917213#c47, one should not use grub2-install on EFI systems and consider using efibootmgr as an alternative.

    Perhaps this patch would help?:

    --- a/rockylinux.sh
    +++ b/rockylinux.sh
    @@ -104,7 +104,7 @@ generate_config_grub() {
     
     write_grub() {
       if [ "$UEFI" -eq 1 ]; then
    -    # we must NOT use grub2-install here. This will replace the prebaked
    +    # we must NOT use efibootmgr here. This will replace the prebaked
         # grubx64.efi (which looks for grub.cfg in ESP) with a new one, which
         # looks for in in /boot/grub2 (which may be more difficult to read)
         rm -f "$FOLD/hdd/boot/grub2/grubenv"
    @@ -115,7 +115,7 @@ write_grub() {
         for ((i=1; i<=COUNT_DRIVES; i++)); do
           if [ "$SWRAID" -eq 1 ] || [ "$i" -eq 1 ] ;  then
             local disk; disk="$(eval echo "\$DRIVE"$i)"
    -        execute_chroot_command "grub2-install --no-floppy --recheck $disk 2>&1"
    +        execute_chroot_command "efibootmgr -c -d $disk -p 1 -w -L \"Rocky Linux\" -l \EFI\rocky\grubx64.efi 2>&1"
             declare -i EXITCODE=$?
           fi
         done

    (untested)

  10. kleisauke commented on Nov 27, 2023

    @kleisauke

    ... it looks like https://bugzilla.redhat.com/show_bug.cgi?id=1917213 is now resolved via commit https://src.fedoraproject.org/rpms/grub2/c/8a9297c4314b61eac1f47ab6444615eb9f13874d. You'll have to use the --force option to create the EFI boot entry.

  11. asciiprod commented on Nov 27, 2023

    @asciiprod
    Collaborator

    Thank you for the info. Now we have to wait and see if this change will get picked up by the RHEL-clones

  12. leonardehrenfried commented on Dec 10, 2023

    @leonardehrenfried

    What about the suggestion to use efibootmgr instead of grub-install?

    Wouldn't that be the better solution?

  13. kleisauke commented on Dec 23, 2023

    @kleisauke

    I just requested a backport for that commit to RHEL 9 in PR rhboot/grub2#135.

  14. kleisauke commented on Feb 22, 2024

    @kleisauke

    ... that commit has just been backported to RHEL 9, see:
    https://gitlab.com/redhat/centos-stream/rpms/grub2/-/commit/6c0546793ae19d7a217cd7add5b7a493bfad41a6

    It should become available in the upcoming RHEL 9.4.0 release. 🎉

  15. leonardehrenfried commented on Mar 20, 2024

    @leonardehrenfried

    Sorry for the nag but is it going to be possible to use CentOS 9 now that the above fix has been added?

  16. kleisauke commented on Apr 14, 2024

    @kleisauke

    It looks like Hetzner now offers support for AlmaLinux 9, CentOS Stream 9 and Rocky Linux 9 on the AX41-NVMe servers:
    https://www.hetzner.com/dedicated-rootserver/matrix-ax#software-2286

  17. kleisauke commented on May 7, 2024

    @kleisauke
  18. kleisauke commented on Jun 15, 2024

    @kleisauke
  19. pat-s commented on Jun 26, 2024

    @pat-s

    I was able to install a fresh Alma9 on an AX42 -> instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions