From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NXNnQ-00082P-Bs for mharc-grub-devel@gnu.org; Tue, 19 Jan 2010 18:47:40 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXNnO-000824-6u for grub-devel@gnu.org; Tue, 19 Jan 2010 18:47:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXNnJ-00081i-LT for grub-devel@gnu.org; Tue, 19 Jan 2010 18:47:37 -0500 Received: from [199.232.76.173] (port=59170 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXNnJ-00081d-Ep for grub-devel@gnu.org; Tue, 19 Jan 2010 18:47:33 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:41186 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXNnI-00052B-Tt for grub-devel@gnu.org; Tue, 19 Jan 2010 18:47:33 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1NXNnH-0000O8-G8 for grub-devel@gnu.org; Wed, 20 Jan 2010 00:47:31 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1NXNnF-0002rt-Ce for grub-devel@gnu.org; Wed, 20 Jan 2010 00:47:29 +0100 Date: Wed, 20 Jan 2010 00:47:29 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20100119234729.GQ8599@thorin> References: <4B4F4C05.8070003@gmail.com> <20100115161507.GA22087@thorin> <4B5350A8.5040108@gmail.com> <20100117182205.GA9602@thorin> <2e59e6971001171139t6e160e62racf34f08c3a38449@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e59e6971001171139t6e160e62racf34f08c3a38449@mail.gmail.com> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [multiboot] command-line format X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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: Tue, 19 Jan 2010 23:47:38 -0000 On Sun, Jan 17, 2010 at 01:39:48PM -0600, richardvoigt@gmail.com wrote: > > I think a bootloader with "universal" in its name should be doing > everything possible to avoid this. If I want to multiboot between > Linux, NetBSD, OpenSolaris, and OpenBSD, do I load my MBR with the BSD > fork of GRUB, the Linux fork of GRUB, or the Solaris fork of GRUB? It doesn't matter, because whichever version of GRUB you use should generate a grub.cfg that uses multiboot command with appropiate parameters. > I think that defaulting the first parameter to the value used by what, > 90% of kernels, but providing a way to override it (I like the > variable idea) will be the least surprising for users. The path is > filesystem-relative anyway, so GRUB isn't required to know how the > kernel names its devices, nor do changes to grub device addressing > change the parameter passed. Filesystem-relative paths still reflect GRUB's view and aren't really a good solution for system tools (which deals with absolute paths and mount points instead). And even then, there are details like weird characters, slashes, case sensitivity, etc which might differ. If you still want GRUB's point of view, you can simply replace: GRUB_PATH=$(make_system_path_relative_to_its_root ${SYSTEM_PATH}) prepare_grub_to_access_device ${SYSTEM_PATH} echo "multiboot ${GRUB_PATH}" with: GRUB_PATH=$(make_system_path_relative_to_its_root ${SYSTEM_PATH}) prepare_grub_to_access_device ${SYSTEM_PATH} echo "multiboot ${GRUB_PATH} ${GRUB_PATH}" in your mkconfig script. But it is much more straightforward to simply do: GRUB_PATH=$(make_system_path_relative_to_its_root ${SYSTEM_PATH}) prepare_grub_to_access_device ${SYSTEM_PATH} echo "multiboot ${GRUB_PATH} ${SYSTEM_PATH}" Then your system tools obtain a path that makes sense to them. -- Robert Millan "Be the change you want to see in the world" -- Gandhi