Package Details: xen-grub-pv32 2.12.r0.g5ca9db2-1

Git Clone URL: https://aur.archlinux.org/xen-grub.git (read-only, click to copy)
Package Base: xen-grub
Description: GRUB bootloader for Xen 32bit PV domUs
Upstream URL: https://www.gnu.org/software/grub/
Licenses: GPL-3.0-or-later
Submitter: Refutationalist
Maintainer: Refutationalist
Last Packager: Refutationalist
Votes: 0
Popularity: 0.000000
First Submitted: 2025-03-13 05:58 (UTC)
Last Updated: 2025-03-13 05:58 (UTC)

Latest Comments

rabcor commented on 2026-06-08 08:55 (UTC)

This package still does not compile,

util/resolve.c: In function ‘get_module_name’:
util/resolve.c:144:8: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  144 |   base = strrchr (str, '/');
      |        ^
util/resolve.c: In function ‘get_module_path’:
util/resolve.c:172:7: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  172 |   ext = strrchr (str, '.');
      |       ^
util/resolve.c:181:7: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  181 |   dir = strchr (str, '/');
      |       ^
cc1: all warnings being treated as errors
make[2]: *** [Makefile:10325: util/grub_mkimage-resolve.o] Error 1
make[2]: Leaving directory '/home/rabcor/.cache/yay/xen-grub/src/grub-pvh'
make[1]: *** [Makefile:12428: all-recursive] Error 1
make[1]: Leaving directory '/home/rabcor/.cache/yay/xen-grub/src/grub-pvh'
make: *** [Makefile:4041: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: xen-grub-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
xen-grub-pvh - exit status 4

Refutationalist commented on 2026-05-06 03:04 (UTC)

Currently this package doesn't compile, and attempts to update to 2.14 garner the same error. Unfortunately, grub in [core] also fails. I'm pressed for time right now so I'm going to hang on a bit to see if a fix emerges before I dive in myself.

Sven commented on 2025-03-24 02:39 (UTC)

I had to heavily patch the grub.cfg used by this package. Since the file in the memdisk is also called /boot/grub/grub.cfg, the search command will not return the right root device. It will set the memdisk to root. Not sure what to do here.

Also, my VMs did not have a grub.cfg that sets the default, timeout, or timeout_style variables. It was a minimal file, only including a menuentry. When booting the VM, grub was stuck in the menu. That took me a while to find. Setting the variables before calling configfile does not help. The configfile command seems to reset those variables.

Right now, I am setting the root statically and attempt to load the grub config from a couple of common paths. I fixed the grub.cfg inside the VMs to set default and timeout variables.

Sven commented on 2025-03-23 15:51 (UTC) (edited on 2025-03-23 16:32 (UTC) by Sven)

It seems to me that this packages probes a number of non-standard locations for grub.cfg. The Arch wiki recommends /boot/grub/grub.cfg but this packages probes for /boot/grub2/grub.cfg instead [2]. It also doesn't probe for /grub/grub.cfg, which would be the right location if a separate boot partition was used.

[1] https://wiki.archlinux.org/title/GRUB#Configuration
[2] https://aur.archlinux.org/cgit/aur.git/tree/grub.cfg?h=xen-grub