[opensuse-factory] VBox 12.3 grub2 boot which kernel
: cat /etc/os-release NAME=openSUSE VERSION="12.3 Milestone 2 (Dartmouth)" VERSION_ID="12.3milestone2" PRETTY_NAME="openSUSE 12.3 Milestone 2 (Dartmouth) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:12.3"
I have the following kernels installed: 18:55 oSFact: ~ # rpm -q kernel-desktop --last kernel-desktop-3.7.0-1.1.x86_64 Fri Dec 21 00:37:57 2012 kernel-desktop-3.6.3-1.1.x86_64 Wed Nov 7 17:23:16 2012 kernel-desktop-3.6.rc7-1.1.x86_64 Tue Nov 6 00:06:52 2012 kernel-desktop-3.6.0-1.1.x86_64 Thu Oct 25 19:46:31 2012 but grub2 *only* offers 3.6.rc7 (and safe/recover, two options). Why isn't the newer kernels offered and how to correct, yast2 bootloader does not provide access to them. ??? 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
В Fri, 21 Dec 2012 18:59:16 -0500
Patrick Shanahan
: cat /etc/os-release NAME=openSUSE VERSION="12.3 Milestone 2 (Dartmouth)" VERSION_ID="12.3milestone2" PRETTY_NAME="openSUSE 12.3 Milestone 2 (Dartmouth) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:12.3"
I have the following kernels installed: 18:55 oSFact: ~ # rpm -q kernel-desktop --last kernel-desktop-3.7.0-1.1.x86_64 Fri Dec 21 00:37:57 2012 kernel-desktop-3.6.3-1.1.x86_64 Wed Nov 7 17:23:16 2012 kernel-desktop-3.6.rc7-1.1.x86_64 Tue Nov 6 00:06:52 2012 kernel-desktop-3.6.0-1.1.x86_64 Thu Oct 25 19:46:31 2012
but grub2 *only* offers 3.6.rc7 (and safe/recover, two options).
Why isn't the newer kernels offered and how to correct, yast2 bootloader does not provide access to them. ???
Please show full grub.cfg. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Andrey Borzenkov
В Fri, 21 Dec 2012 18:59:16 -0500 Patrick Shanahan
пишет: : cat /etc/os-release NAME=openSUSE VERSION="12.3 Milestone 2 (Dartmouth)" VERSION_ID="12.3milestone2" PRETTY_NAME="openSUSE 12.3 Milestone 2 (Dartmouth) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:12.3"
I have the following kernels installed: 18:55 oSFact: ~ # rpm -q kernel-desktop --last kernel-desktop-3.7.0-1.1.x86_64 Fri Dec 21 00:37:57 2012 kernel-desktop-3.6.3-1.1.x86_64 Wed Nov 7 17:23:16 2012 kernel-desktop-3.6.rc7-1.1.x86_64 Tue Nov 6 00:06:52 2012 kernel-desktop-3.6.0-1.1.x86_64 Thu Oct 25 19:46:31 2012
but grub2 *only* offers 3.6.rc7 (and safe/recover, two options).
Why isn't the newer kernels offered and how to correct, yast2 bootloader does not provide access to them. ???
Please show full grub.cfg.
http://wahoo.no-ip.org/~pat/grub.cfg 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
В Sat, 22 Dec 2012 11:04:52 -0500
Patrick Shanahan
* Andrey Borzenkov
[12-22-12 10:49]: В Fri, 21 Dec 2012 18:59:16 -0500 Patrick Shanahan
пишет: : cat /etc/os-release NAME=openSUSE VERSION="12.3 Milestone 2 (Dartmouth)" VERSION_ID="12.3milestone2" PRETTY_NAME="openSUSE 12.3 Milestone 2 (Dartmouth) (x86_64)" ID=opensuse ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:opensuse:12.3"
I have the following kernels installed: 18:55 oSFact: ~ # rpm -q kernel-desktop --last kernel-desktop-3.7.0-1.1.x86_64 Fri Dec 21 00:37:57 2012 kernel-desktop-3.6.3-1.1.x86_64 Wed Nov 7 17:23:16 2012 kernel-desktop-3.6.rc7-1.1.x86_64 Tue Nov 6 00:06:52 2012 kernel-desktop-3.6.0-1.1.x86_64 Thu Oct 25 19:46:31 2012
but grub2 *only* offers 3.6.rc7 (and safe/recover, two options).
Why isn't the newer kernels offered and how to correct, yast2 bootloader does not provide access to them. ???
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). -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Andrey Borzenkov
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.... 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
В 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 --- /etc/grub.d/10_linux.orig 2012-11-26 14:01:25.000000000 +0400 +++ /etc/grub.d/10_linux 2012-12-22 21:20:05.160468553 +0400 @@ -238,6 +238,7 @@ while [ "x$list" != "x" ] ; do linux_entry "${OS}" "${version}" simple \ "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" +if /bin/false; then submenu_indentation="\t" if [ -z "$boot_device_id" ]; then @@ -245,6 +246,7 @@ while [ "x$list" != "x" ] ; do fi # TRANSLATORS: %s is replaced with an OS name echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {" +fi fi linux_entry "${OS}" "${version}" advanced \ @@ -258,10 +260,12 @@ while [ "x$list" != "x" ] ; do is_first_entry=false done +if /bin/false; then # If at least one kernel was found, then we need to # add a closing '}' for the submenu command. if [ x"$is_first_entry" != xtrue ]; then echo '}' fi +fi echo "$title_correction_code" I am a bit surprised about "need". Why? What exactly is not possible with submenu that is possible with flat list? -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Andrey Borzenkov
В 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. I do understand about the recovery entries, if I could understand the other. The present menutree has: menuentry .... submenu.... with all three kernels and recovery... where is it that I should put the lines you indicate? do I need to recreate/copy the entire tree for each entry or ...? entertain me, I am aged and very stupid about grub2 and not a lot better with grub. 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
В 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
* Andrey Borzenkov
В 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.
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
participants (2)
-
Andrey Borzenkov
-
Patrick Shanahan