Comment # 6 on bug 956526 from
I think a patch like this would allow to set xen loader options via, say, 
SUSE_EFI_XEN_LOADER_CMDLINE="-mapbs" in /etc/default/grub. But we'd better not
to invent new settings if not required. So I'm support Andrei's suggestion,
better to clarify why -mapbps is needed or is supported and possibility to
detect it as part of auto configuration settings.

Index: grub-2.02~beta2/util/grub-mkconfig.in
===================================================================
--- grub-2.02~beta2.orig/util/grub-mkconfig.in
+++ grub-2.02~beta2/util/grub-mkconfig.in
@@ -260,7 +260,8 @@ export GRUB_DEFAULT \
   GRUB_DISABLE_SUBMENU \
   GRUB_CMDLINE_LINUX_RECOVERY \
   GRUB_USE_LINUXEFI \
-  SUSE_BTRFS_SNAPSHOT_BOOTING
+  SUSE_BTRFS_SNAPSHOT_BOOTING \
+  SUSE_EFI_XEN_LOADER_CMDLINE

 if test "x${grub_cfg}" != "x"; then
   rm -f "${grub_cfg}.new"
Index: grub-2.02~beta2/util/grub.d/20_linux_xen.in
===================================================================
--- grub-2.02~beta2.orig/util/grub.d/20_linux_xen.in
+++ grub-2.02~beta2/util/grub.d/20_linux_xen.in
@@ -176,7 +176,7 @@ linux_entry ()
     message="$(gettext_printf "Loading Xen %s with Linux %s ..."
${xen_version} ${version})"
     sed "s/^/$submenu_indentation/" <<-EOF
                echo    '$(echo "$message" | grub_quote)'
-               chainloader  \$cmdpath/${xen_basename} ${xen_basename} $section
+               chainloader  \$cmdpath/${xen_basename} ${xen_basename} $section
${SUSE_EFI_XEN_LOADER_CMDLINE}
        }
        EOF
     for f in ${grub_dir}/$xen_cfg ${xen_dir}/${xen_basename}
${rel_dirname}/${basename} ${rel_dirname}/${initrd}; do


You are receiving this mail because: