Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OEPXe-0001UU-G4 for mharc-grub-devel@gnu.org; Tue, 18 May 2010 12:21:14 -0400 Received: from [140.186.70.92] (port=48456 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEPXb-0001St-9d for grub-devel@gnu.org; Tue, 18 May 2010 12:21:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEPXZ-00055I-Dt for grub-devel@gnu.org; Tue, 18 May 2010 12:21:11 -0400 Received: from martini.nu ([198.145.180.83]:52313) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OEPXZ-00054r-5G for grub-devel@gnu.org; Tue, 18 May 2010 12:21:09 -0400 Received: (qmail 16819 invoked by uid 1000); 18 May 2010 16:13:43 -0000 Date: Tue, 18 May 2010 09:13:43 -0700 From: "Mahlon E. Smith" To: grub-devel@gnu.org Message-ID: <20100518161343.GB7759@martini.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG-Fingerprint: 19B8 DDB3 0156 3A03 FA80 8278 C0BE 6BFB 3606 B267 X-Sysinfo: FreeBSD 7.0-RELEASE-p1 i386 User-Agent: Mutt/1.5.17 (2007-11-01) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Subject: grub2, pxe, and default boot 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, 18 May 2010 16:21:12 -0000 Hey all! New to the list, and fairly new to Grub2. I've got about 400+ machines as part of a farm. They are re-imaged routinely on demand, each image a different preset for the role it needs to play (even swapping OS at times.) Traditionally, we used pxelinux to image this stuff remotely. I really, really would prefer to use Grub2 for this, but I've run into a small problem that I'm hoping the list here can lend a hand with. The machines are set to network boot as a default. I'd like to keep this behavior, and let the timeout fallthrough to the primary hard drive. (This way, I can use tftp-hpa to rewrite read requests for 'grubenv' to get per-machine environmental vars, and remote-control the imaging. That part of this process is working great.) It looks like I can accomplish this via: set root=(hd0,1) chainloader +1 boot The problem is that there aren't any drives loaded by default from the (pxe) environment. sh:grub> ls (pxe) I discovered that I could 'insmod biosdisk', and lo-and-behold get my hd* nodes (woo!): sh:grub> insmod ext2 sh:grub> insmod biosdisk sh:grub> ls (hd0) (fd0) (pxe) However, I can't actually -use- hd0 for anything. I'm not sure why. I'm guessing it has something to do with what filesystem it thinks hd0 is: sh:grub> ls -lh Device hd0: Filesystem type pxefs <---- uh oh Device fd0: Unknown filesystem Device pxe: Filesystem type pxefs sh:grub> chainloader (hd0,1)+1 error: no such partition ... and here's where my diagnostic abilities stop. :) Can anyone suggest other things to try, reasons why this might be happening, or other ways to achieve my goal? Could this just be a bug? All input welcome and appreciated. -- Mahlon E. Smith http://www.martini.nu/contact.html