From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VfUwF-0004Ll-5E for mharc-grub-devel@gnu.org; Sun, 10 Nov 2013 08:20:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53205) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfUw7-0004JZ-GJ for grub-devel@gnu.org; Sun, 10 Nov 2013 08:20:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfUw2-0005Ey-4r for grub-devel@gnu.org; Sun, 10 Nov 2013 08:20:19 -0500 Received: from mail-lb0-x232.google.com ([2a00:1450:4010:c04::232]:42327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfUw1-0005En-S4 for grub-devel@gnu.org; Sun, 10 Nov 2013 08:20:14 -0500 Received: by mail-lb0-f178.google.com with SMTP id l4so2694138lbv.9 for ; Sun, 10 Nov 2013 05:20:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=4BXLYRvRw3RLu+gAXUC+/UzSNAhmj8Zlry2i75yx6FA=; b=rikHwISSbmwA1J6+b9pc+pCfWinKbl6QBj5quahtSYANJHxqjUVipIHLwMxKiWz7JA TWyV7nKUxerxEZ2Rl6ENiPz23DIDiUYmLuSDD5uZL/tpI9OsKf21GRgBOcsQ9RAPekKb OauF25Cd1u5hQmzLzGRFZJ7UocmVMdj+dYJnd8crZp5eH/GbTzKVhNvs8wP0aofchZME sRmVQFXzJ4hm2DYNtnnj0ZGiRT4f2fAt3lgBBEd2PQKZzuYAqijgYnSzJTLhAsTqacnM XvmhD1oSDxIxjQ3OxWd1v97xbvP/yHuEENrxkOmDQdyAwoGNRXF7P+c5XKYOZw9ihPka 8smA== X-Received: by 10.152.184.198 with SMTP id ew6mr50187lac.34.1384089612589; Sun, 10 Nov 2013 05:20:12 -0800 (PST) Received: from opensuse.site (ppp91-76-174-89.pppoe.mtu-net.ru. [91.76.174.89]) by mx.google.com with ESMTPSA id ys4sm17990734lab.4.2013.11.10.05.20.11 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 10 Nov 2013 05:20:11 -0800 (PST) Date: Sun, 10 Nov 2013 17:20:10 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [PATCH] document GRUB_DISABLE_SUBMENU Message-ID: <20131110172010.086e28cf@opensuse.site> In-Reply-To: <5277C6AB.5090808@gmail.com> References: <5276D8EA.6050305@gmail.com> <1383568994-3969-1-git-send-email-arvidjaar@gmail.com> <52779DFC.80107@gmail.com> <20131104182741.28ac7cc4@opensuse.site> <5277C6AB.5090808@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/YD1+rJopa/VLHbzKdJyfkLX"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::232 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2013 13:20:25 -0000 --Sig_/YD1+rJopa/VLHbzKdJyfkLX Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Mon, 04 Nov 2013 17:09:15 +0100 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > On 04.11.2013 15:27, Andrey Borzenkov wrote: > > =D0=92 Mon, 04 Nov 2013 14:15:40 +0100 > > Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF= =D0=B8=D1=88=D0=B5=D1=82: > >> Could you add that toggling this requires changing default/GRUB_DEFAULT > >> and saved default? > >> > >> > >=20 > > Like this? > >=20 > I think it should be "will" not "may". And also explicit mention of > default, fallback, GRUB_DEFAULT and grub-reboot/grub-set-default with > links would be helpful Default won't need to be changed if it already refers to top-level menu entry by ID or title (which does not change). Below is the best I could come up with without making it exceedingly large. From: Andrey Borzenkov To: grub-devel@gnu.org Subject: [PATCH] document GRUB_DISABLE_SUBMENU Signed-off-by: Andrey Borzenkov --- docs/grub.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/grub.texi b/docs/grub.texi index ead8fbd..58e04e2 100644 --- a/docs/grub.texi +++ b/docs/grub.texi @@ -1450,6 +1450,18 @@ Normally, @command{grub-mkconfig} will try to use th= e external systems installed on the same system and generate appropriate menu entries for them. Set this option to @samp{true} to disable this. =20 +@item GRUB_DISABLE_SUBMENU +Normally, @command{grub-mkconfig} will generate top level menu entry for +the kernel with highest version number and put all other found kernels +or alternative menu entries for recovery mode in submenu. For entries retu= rned +by @command{os-prober} first entry will be put on top level and all others +in submenu. If this option is set to @samp{y}, flat menu with all entries +on top level will be generated instead. Changing this option will require +changing existing values of @samp{GRUB_DEFAULT}, @samp{fallback} (@pxref{f= allback}) +and @samp{default} (@pxref{default}) environment variables as well as saved +default entry using @command{grub-set-default} and value used with +@command{grub-reboot}. + @item GRUB_ENABLE_CRYPTODISK If set to @samp{y}, @command{grub-mkconfig} and @command{grub-install} will check for encrypted disks and generate additional commands needed to access --=20 tg: (9612ebc..) u/grub_disable_submenu (depends on: master) --Sig_/YD1+rJopa/VLHbzKdJyfkLX Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlJ/iAoACgkQR6LMutpd94xY+ACcCXVfrxQADZCYp3YNmbPYHx6T 5D0AoIuNTZJpudbKPhVAOqOcHO2iAgh8 =tE8W -----END PGP SIGNATURE----- --Sig_/YD1+rJopa/VLHbzKdJyfkLX--