Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DIbfT-0001fj-Vr for mharc-grub-devel@gnu.org; Mon, 04 Apr 2005 20:11:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DIbfQ-0001eH-HU for grub-devel@gnu.org; Mon, 04 Apr 2005 20:11:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DIbfM-0001bX-2l for grub-devel@gnu.org; Mon, 04 Apr 2005 20:11:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DIbfK-0001Zj-GO for grub-devel@gnu.org; Mon, 04 Apr 2005 20:11:34 -0400 Received: from [209.86.89.61] (helo=smtpauth01.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DIc5U-0005Nk-HH for grub-devel@gnu.org; Mon, 04 Apr 2005 20:38:36 -0400 Received: from [63.246.184.80] (helo=[192.168.0.101]) by smtpauth01.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1DIc5P-0004VZ-8M for grub-devel@gnu.org; Mon, 04 Apr 2005 20:38:31 -0400 Mime-Version: 1.0 (Apple Message framework v619.2) Content-Transfer-Encoding: 7bit Message-Id: <78d5a6962754dbc4b0f64fb15ffd7b79@penguinppc.org> Content-Type: text/plain; charset=US-ASCII; format=flowed To: The development of GRUB 2 From: Hollis Blanchard Date: Mon, 4 Apr 2005 19:38:29 -0500 X-Mailer: Apple Mail (2.619.2) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec7939854fc09af813d2989ce4063335cfe6350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: partition layouts 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: Tue, 05 Apr 2005 00:11:41 -0000 I've been thinking about how to install grub2 on an Open Firmware system. Here's one possibility: /boot -- Linux-native filesystem (e.g. ext3) holds kernels, initrd, etc /boot/grub -- firmware-native filesystem (on Mac HFS+, on others FAT, etc) holds grub executable, grub.cfg, modules The grub ELF file must live on a firmware-native filesystem. When run, it can find out what partition it was booted from, so that is a natural place to load grub.cfg from as well (and why not modules while we're at it?). Thus this is the value of the "prefix" GRUB environment variable. When booting kernels from another partition though, we're left with something like this: title Linux linux (hd,7)/vmlinux-foo root=/dev/hda12 initrd (hd,7)/initrd-foo [To summarize: (hd,5) -- /boot/grub (hd,7) -- /boot (hd,11) -- / ] Can we have a shortcut to avoid specifying that "(hd,7)/" part repeatedly? I think that was the "root" command in GRUB Legacy, which was replaced by the "prefix" environment variable? But as I mentioned, "prefix" doesn't have the meaning we're looking for here... The other possibility is to have all of /boot as a firmware-native filesystem. I think that's not ideal though, because those filesystems (HFS+, FAT) might not support features like symlinks or Unix-style permissions, or may not be as well-tested as Linux-native filesystems. -Hollis