Bug#1127371: grub-efi-riscv64: failed to boot kernel: `/boot/grub/loongarch64-efi/efi_uga.mod' not found.

Aurelien Jarno aurel32 at debian.org
Sat Feb 7 14:02:18 GMT 2026


Package: grub-efi-riscv64
Version: 2.14-1
Severity: grave
Justification: renders package unusable
X-Debbugs-Cc: debian-riscv at lists.debian.org
User: debian-riscv at lists.debian.org
Usertags: riscv64

Dear maintainers,

When using grub version 2.14-1 on riscv64, it fails to boot after
selecting the kernel to boot with the following error:

| error: ../../../grub-core/fs/fshelp.c:find_file:260:file `/boot/grub/riscv64-efi/efi_uga.mod' not found.
| Loading Linux 6.18.8+deb14-riscv64 ...
| Loading initial ramdisk ...
|
| Press any key to continue...

After pressing a key, the boot continues, but that breaks automatic
reboot and require having a keyboard/screen or a serial console.

It seems that in the previous version loaded all_video.mod, while the
new version loads both efi_gop.mod and efi_uga.mod. According to the
Makefile, it seems the latter is x86 specific, and thus should not be
loaded on riscv64. Manually removing it from the config file fixes the
issue.

I believe the issue also affects other non-x86 architectures, but I
can't easily check at the moment.

Regards
Aurelien


-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/nvme0n1p2 / ext4 rw,relatime,errors=remount-ro 0 0
/dev/mapper/vg0-home /home ext4 rw,relatime 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi

if [ "${env_block}" ] ; then
  set env_block="(${root})${env_block}"
  export env_block
  load_env -f "${env_block}"
fi

if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   if [ "${env_block}" ] ; then
     save_env -f "${env_block}" next_entry
   else
     save_env next_entry
   fi
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    if [ "${env_block}" ] ; then
      save_env -f "${env_block}" saved_entry
    else
      save_env saved_entry
    fi

  fi
}
function load_video {
  if [ x$grub_platform = xefi ]; then
    insmod efi_gop
    insmod efi_uga
  elif [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root ccd22d86-b6e8-4257-a706-a28a98cbcb86
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ccd22d86-b6e8-4257-a706-a28a98cbcb86' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	search --no-floppy --fs-uuid --set=root ccd22d86-b6e8-4257-a706-a28a98cbcb86
	echo	'Loading Linux 6.18.8+deb14-riscv64 ...'
	linux	/boot/vmlinux-6.18.8+deb14-riscv64 root=UUID=ccd22d86-b6e8-4257-a706-a28a98cbcb86 ro 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-6.18.8+deb14-riscv64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-ccd22d86-b6e8-4257-a706-a28a98cbcb86' {
	menuentry 'Debian GNU/Linux, with Linux 6.18.8+deb14-riscv64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.18.8+deb14-riscv64-advanced-ccd22d86-b6e8-4257-a706-a28a98cbcb86' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root ccd22d86-b6e8-4257-a706-a28a98cbcb86
		echo	'Loading Linux 6.18.8+deb14-riscv64 ...'
		linux	/boot/vmlinux-6.18.8+deb14-riscv64 root=UUID=ccd22d86-b6e8-4257-a706-a28a98cbcb86 ro 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.18.8+deb14-riscv64
	}
	menuentry 'Debian GNU/Linux, with Linux 6.18.8+deb14-riscv64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.18.8+deb14-riscv64-recovery-ccd22d86-b6e8-4257-a706-a28a98cbcb86' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		search --no-floppy --fs-uuid --set=root ccd22d86-b6e8-4257-a706-a28a98cbcb86
		echo	'Loading Linux 6.18.8+deb14-riscv64 ...'
		linux	/boot/vmlinux-6.18.8+deb14-riscv64 root=UUID=ccd22d86-b6e8-4257-a706-a28a98cbcb86 ro single
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.18.8+deb14-riscv64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
	fwsetup --is-supported
	if [ "$?" = 0 ]; then
		menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
			fwsetup
		}
	fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Jan  1  1970 dm-name-vg0-home -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jan  1  1970 dm-name-vg0-swap -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jan  1  1970 dm-uuid-LVM-xGA1FGbRpFmck6kKcPqN7986R9LmR6zlZ8LdoDbx1w5uTZGnPhtZU3q7ZCngSYpA -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jan  1  1970 dm-uuid-LVM-xGA1FGbRpFmck6kKcPqN7986R9LmR6zleKPSomkxS4iaMj2sRBgcd4Taxqrere22 -> ../../dm-0
lrwxrwxrwx 1 root root 15 Jan  1  1970 lvm-pv-uuid-nGy7E2-wAcm-2cg3-Ke0R-Q3Ux-fo5W-UxWmaN -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 Jan  1  1970 nvme-FOX_SPIRIT_PM18_240GB_12282220A0365 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-FOX_SPIRIT_PM18_240GB_12282220A0365-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-FOX_SPIRIT_PM18_240GB_12282220A0365-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-FOX_SPIRIT_PM18_240GB_12282220A0365-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 Jan  1  1970 nvme-FOX_SPIRIT_PM18_240GB_12282220A0365_1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-FOX_SPIRIT_PM18_240GB_12282220A0365_1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-FOX_SPIRIT_PM18_240GB_12282220A0365_1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-FOX_SPIRIT_PM18_240GB_12282220A0365_1-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 13 Jan  1  1970 nvme-nvme.126f-31323238323232304130333635-464f582053504952495420504d3138203234304742-00000001 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-nvme.126f-31323238323232304130333635-464f582053504952495420504d3138203234304742-00000001-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-nvme.126f-31323238323232304130333635-464f582053504952495420504d3138203234304742-00000001-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jan  1  1970 nvme-nvme.126f-31323238323232304130333635-464f582053504952495420504d3138203234304742-00000001-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root  9 Feb  7 14:43 usb-Kingston_DataTraveler_3.0_08606E6B6580F181872BB526-0:0 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb  7 14:43 usb-Kingston_DataTraveler_3.0_08606E6B6580F181872BB526-0:0-part1 -> ../../sda1
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Feb  7 14:43 2CA9-AB1A -> ../../sda1
lrwxrwxrwx 1 root root 10 Jan  1  1970 99a455aa-955c-4020-af01-f1505f294127 -> ../../dm-1
lrwxrwxrwx 1 root root 15 Jan  1  1970 B97D-DFE7 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 10 Jan  1  1970 ac3f85be-1d1b-46b5-9ea5-aa6c2a283b9c -> ../../dm-0
lrwxrwxrwx 1 root root 15 Jan  1  1970 ccd22d86-b6e8-4257-a706-a28a98cbcb86 -> ../../nvme0n1p2
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: riscv64

Kernel: Linux 6.18.8+deb14-riscv64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages grub-efi-riscv64 depends on:
ii  debconf [debconf-2.0]  1.5.91
ii  grub-efi-riscv64-bin   2.14-1
ii  grub2-common           2.14-1
ii  ucf                    3.0052

grub-efi-riscv64 recommends no packages.

grub-efi-riscv64 suggests no packages.

-- debconf information:
* grub2/force_efi_extra_removable: true
  grub2/kfreebsd_cmdline_default: quiet
* grub2/update_nvram: true
* grub2/enable_os_prober: false
* grub2/linux_cmdline_default:
* grub2/linux_cmdline:
  grub2/kfreebsd_cmdline:



More information about the Pkg-grub-devel mailing list