bugGNU GRUB - Bugs: bug #58113, 20_linux_xen does not work if no...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58113: 20_linux_xen does not work if no kernel config file

Submitter:  John <johnth>
Submitted:  Sat 04 Apr 2020 07:33:14 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 04 Apr 2020 07:33:14 PM UTC, original submission:  

I want to add GRUB boot entries for Xen on Arch Linux using grub-mkconfig
My distribution does not package or install any linux kernel config file in /boot,
so 20_linux_xen does not function for me.

I work around this by or-testing to continue with zero length config file name in 20_linux_xen

http://git.savannah.gnu.org/cgit/grub.git/tree/util/grub.d/20_linux_xen.in#n169


-if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then linux_list="$linux_list $i" ; fi
+if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null || [ -z ${config} ]); then linux_list="$linux_list $i" ; fi


  • If this would be appropriate for upstream, I can submit the patch?
  • I do not know of any other simple way of checking for kernel xen support, such as parsing and testing the vmlinuz-linux file?
  • https://stuff.mit.edu/afs/sipb/contrib/linux/scripts/extract-ikconfig does work to get a CONFIG for me, but I am guessing this parse vmlinuz functionality should not be a part of GRUB?


Otherwise, please let me know if this is more appropriate for distribution-level, where I could try to get implemented:

  • This change in their shipped GRUB, or
  • Install a dummy /boot/config-${version} with only CONFIG_XEN_DOM0=y as part of their Xen package


Cheers,
John

John <johnth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by johnth (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code