From 41603de87357367e32d2992362fad516533680ad Mon Sep 17 00:00:00 2001 From: h8d13 Date: Fri, 9 Jan 2026 00:32:01 +0100 Subject: [PATCH 1/2] Hotfix grub --- archinstall/lib/installer.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index fe6d0935b4..e7d1dac0dd 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1399,7 +1399,7 @@ def _add_grub_bootloader( # Add custom UKI entries if enabled if uki_enabled and SysInfo.has_uefi() and efi_partition: - custom_entries = self.target / 'etc/grub.d/09_custom' + custom_entries = self.target / 'etc/grub.d/40_custom' entries_content = ( '#!/bin/sh\n' 'exec tail -n +3 $0\n' @@ -1423,11 +1423,6 @@ def _add_grub_bootloader( custom_entries.write_text(entries_content) custom_entries.chmod(0o755) - # Disable 10_linux to prevent broken entries on kernel updates - linux_script = self.target / 'etc/grub.d/10_linux' - if linux_script.exists(): - linux_script.chmod(0o644) - try: self.arch_chroot( f'grub-mkconfig -o {boot_dir}/grub/grub.cfg', From 5c9945298752df3f809af07f84ee0c0ac4ce8e66 Mon Sep 17 00:00:00 2001 From: h8d13 Date: Fri, 9 Jan 2026 00:45:52 +0100 Subject: [PATCH 2/2] revert changes --- archinstall/lib/installer.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index e7d1dac0dd..1f16e0a6cd 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -1397,32 +1397,6 @@ def _add_grub_bootloader( except SysCallError as err: raise DiskError(f'Failed to install GRUB boot on {boot_partition.dev_path}: {err}') - # Add custom UKI entries if enabled - if uki_enabled and SysInfo.has_uefi() and efi_partition: - custom_entries = self.target / 'etc/grub.d/40_custom' - entries_content = ( - '#!/bin/sh\n' - 'exec tail -n +3 $0\n' - '# This file provides UKI (Unified Kernel Image) boot entries.\n' - '# Generated by archinstall. Do not modify the exec tail line above.\n' - '# Custom entries can be added below.\n\n' - ) - - uki_entries = [] - for kernel in self.kernels: - entry = textwrap.dedent( - f""" - menuentry "Arch Linux ({kernel}) UKI" {{ - uki /EFI/Linux/arch-{kernel}.efi - }} - """ - ) - uki_entries.append(entry) - - entries_content += '\n'.join(uki_entries) - custom_entries.write_text(entries_content) - custom_entries.chmod(0o755) - try: self.arch_chroot( f'grub-mkconfig -o {boot_dir}/grub/grub.cfg',