[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-factory
Subject:    Re: [opensuse-factory] VBox 12.3 grub2 boot which kernel
From:       Patrick Shanahan <paka () opensuse ! org>
Date:       2012-12-23 14:29:06
Message-ID: 20121223142906.GB30698 () wahoo ! no-ip ! org
[Download RAW message or body]

* Andrey Borzenkov <arvidjaar@gmail.com> [12-23-12 00:53]:
> В Sat, 22 Dec 2012 12:53:16 -0500
> Patrick Shanahan <paka@opensuse.org> пишет:
> 
> > * Andrey Borzenkov <arvidjaar@gmail.com> [12-22-12 12:36]:
> > > В Sat, 22 Dec 2012 11:49:45 -0500
> > > Patrick Shanahan <paka@opensuse.org> пишет:
> > > 
> > > > * Andrey Borzenkov <arvidjaar@gmail.com> [12-22-12 11:29]:
> > > >  [...]
> > > > > > > Please show full grub.cfg.
> > > > > > 
> > > > > > http://wahoo.no-ip.org/~pat/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.

ok, I added three lines, menuentry ...., as presented above to
/etc/grub.d/10_linux file immediately after two "export TEXT..." lines
just below the beginning of the file.  There is no information within the
file that I see that explains where to put "new entries" and running
"grub2-mkconfig -o /boot/grub2/grub.cfg" created /boot/grub2/grub.cfg.new
which contains:

09:20 oSFact: ~ # grep menuentry /boot/grub2/grub.cfg.new
if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
  menuentry_id_option=""
export menuentry_id_option
    
This doesn't appear to me to be correct so I have no attempted to boot
with this config.

Please explain what I need to do as I do not know.
 
> 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 :)

The adequacy with which I have addressed this issue surely precludes me
making any request or bug report that would benefit *anyone* or result in
any solution.

tks,
-- 
(paka)Patrick Shanahan       Plainfield, Indiana, USA      HOG # US1244711
http://wahoo.no-ip.org        Photo Album: http://wahoo.no-ip.org/gallery2
http://en.opensuse.org                           openSUSE Community Member
Registered Linux User #207535                    @ http://linuxcounter.net
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic