From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JL3hr-0006vb-5x for mharc-grub-devel@gnu.org; Fri, 01 Feb 2008 16:45:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JL3hp-0006vI-94 for grub-devel@gnu.org; Fri, 01 Feb 2008 16:45:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JL3hn-0006uu-Qp for grub-devel@gnu.org; Fri, 01 Feb 2008 16:45:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JL3hn-0006ur-IG for grub-devel@gnu.org; Fri, 01 Feb 2008 16:45:51 -0500 Received: from smtp.prismnet.com ([209.198.128.91]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JL3hn-0007Rp-DB for grub-devel@gnu.org; Fri, 01 Feb 2008 16:45:51 -0500 Received: from hrnowl.io.com (206-224-83-149-dialup.io.com [206.224.83.149]) by smtp.prismnet.com (8.14.1/8.14.1) with ESMTP id m11LjgCK095226 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 1 Feb 2008 15:45:48 -0600 (CST) (envelope-from pelliott@io.com) Received: from hrnowl.io.com (localhost [127.0.0.1]) by hrnowl.io.com (8.13.8/8.13.8/SuSE Linux 0.8) with ESMTP id m11Ljfgm011087 for ; Fri, 1 Feb 2008 15:45:41 -0600 Received: (from pelliott@localhost) by hrnowl.io.com (8.13.8/8.12.6/Submit) id m11LjeqD011086 for grub-devel@gnu.org; Fri, 1 Feb 2008 15:45:40 -0600 Date: Fri, 1 Feb 2008 15:45:40 -0600 From: Paul Elliott To: The development of GRUB 2 Message-ID: <20080201214540.GA11061@io.com> References: <20080131160805.GA6114@io.com> <1201798681.14129.2.camel@dv> <20080201043402.GA5385@io.com> <1201841437.18433.70.camel@dv> <20080201125939.GA7004@io.com> <1201886730.7586.22.camel@dv> <20080201184413.GA9474@io.com> <1201896891.3789.14.camel@dv> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: <1201896891.3789.14.camel@dv> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on smtp.prismnet.com X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) Subject: Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 21:45:53 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 01, 2008 at 03:14:51PM -0500, Pavel Roskin wrote: > On Fri, 2008-02-01 at 12:44 -0600, Paul Elliott wrote: > > > One possible approach would be to use LVM (Logical Volume Manager) - > > > it's supported by grub2. You could install grub on a small boot > > > partition and allocate the rest to as an LVM partition, that would be > > > split into volumes. Then you could refer to the volumes by name. > > >=20 > >=20 > > This seems a long way to drag the cat around the barn. Or this > > would be like kicking dead whales down the beach. One should > > not have to invoke the complexity of LVN just so one can specify > > partitions. >=20 > OK, let's fix GRUB. >=20 > As for the expansion issue, I think I see how to fix it. > grub_script_arg_add() should append expanded variables to the last > argument, rather than allocate a new argument, unless the new argument > is separated by spaces from the previous one. >=20 > GRUB_SCRIPT_ARG_TYPE_STR and GRUB_SCRIPT_ARG_TYPE_VAR are "write only". > I think we should discard grub_script_arg_type_t or use it to keep track > of spaces in the input. >=20 > As for the "boot_device", it could be set in the same place as "root", > namely in grub_set_root_dev() in kern/main.c. >=20 Ok, you are well into grub2 internals, and beond the areas I am familiar with. I am glad the problem is being addressed and glad I could be helpfull in pointing out the problem. When grub2 is finished, I will look in the manual and see what syntax I need to use to solve problems like this. --=20 Paul Elliott 1(512)837-1096 pelliott@io.com PMB 181, 11900 Metric Blvd Suite J http://www.io.com/~pelliott/pme/ Austin TX 78758-3117 --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFHo5MEiv9zpDRc3ZkRAm2DAKCfXJ6TlYr+J38Vdm40+w9R8OTfKgCeOuD1 OJLQYYigk0mZcyMeZpKCcFc= =ENbE -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--