В Sat, 22 Dec 2012 12:53:16 -0500
Patrick Shanahan
* Andrey Borzenkov
[12-22-12 12:36]: В Sat, 22 Dec 2012 11:49:45 -0500 Patrick Shanahan
пишет: * Andrey Borzenkov
[12-22-12 11:29]: [...] Please show full grub.cfg.
menuentry 'openSUSE, with Linux 3.7.0-1-desktop' menuentry 'openSUSE, with Linux 3.6.3-1-desktop' menuentry 'openSUSE, with Linux 3.6.0-1-desktop'
(I omitted recovery variants).
I need to duplicate the entire menutree w/submenu...., or just edit the first/top menuentry which has only "openSUSE". The present menutree contains submenu's containing the other kernel vers w/recovery....
Not sure that I understand it (from pure language side) but if "w/submenu" means "without submenu" you could simply edit /etc/grub.d/10_linux and remove couple of lines. Something like
sorry for not being more clear. "w/submenu" indicates *with* submenu.
I do not understand what it is that I need to edit or where to put the entries you have provided.
In GRUB2 by default grub.cfg is generated by scripts in /etc/grub.d; these scripts are invoked by grub2-mkconfig. Linux menu entries are generated by /etc/grub.d/10_linux. So you need to change this file and re-run "grub2-mkconfig -o /boot/grub2/grub.cfg" (or perl-bootloader --refresh). This is just a normal shell script. My example simply skips over submenu generation. I have also patch that adds configuration variable to /etc/default/grub and makes submenu generation conditional on it. Open bug report or feature request, so maintainer can decide whether to include this patch or not. For myself I do not care so do not feel like submitting it myself :) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org