В 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