Received: from mailman by lists.gnu.org with archive (Exim 4.33) id 1CAnoF-0005rh-QD for mharc-grub-devel@gnu.org; Fri, 24 Sep 2004 07:00:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CAnoE-0005rb-Dl for grub-devel@gnu.org; Fri, 24 Sep 2004 07:00:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CAnoC-0005rG-Qs for grub-devel@gnu.org; Fri, 24 Sep 2004 07:00:14 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CAnoC-0005r6-Ja for grub-devel@gnu.org; Fri, 24 Sep 2004 07:00:12 -0400 Received: from [145.74.66.11] (helo=mail-cn.han.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CAni0-00033Y-DZ for grub-devel@gnu.org; Fri, 24 Sep 2004 06:53:49 -0400 Received: from localhost (charlie.han.nl [145.74.66.9]) by mail-cn.han.nl (Postfix) with ESMTP id C81CF87F2 for ; Fri, 24 Sep 2004 12:53:47 +0200 (CEST) Received: from mail-cn.han.nl ([145.74.66.11]) by localhost (charlie.han.nl [145.74.66.9]) (amavisd-new, port 10024) with ESMTP id 22674-09 for ; Fri, 24 Sep 2004 12:53:45 +0200 (CEST) Received: from mail1.han.nl (mail1.han.nl [145.74.103.11]) by mail-cn.han.nl (Postfix) with ESMTP id 90F3185A2 for ; Fri, 24 Sep 2004 12:53:45 +0200 (CEST) Received: from marco.marco-g.com (mgerards.xs4all.nl [82.92.27.129]) by mail1.han.nl (Postfix) with ESMTP id C1A19C04B for ; Fri, 24 Sep 2004 12:53:43 +0200 (CEST) Mail-Copies-To: metgerards@student.han.nl To: The development of GRUB 2 References: From: Marco Gerards Date: Fri, 24 Sep 2004 10:53:50 +0000 In-Reply-To: (lode leroy's message of "Fri, 24 Sep 2004 12:28:30 +0200") Message-ID: <87fz58kke9.fsf@marco.marco-g.com> User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new@vscan-cn.han.nl Subject: Re: grub2 floppy image with menu? 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, 24 Sep 2004 11:00:14 -0000 "lode leroy" writes: > Could someone post a recipe for creating a floppy disk image with a > config file, > as to test the menu? > > ./configure > make > ./grub-mkimage -v -d . -o core.img `ls *.mod | sed -e 's/\\.mod//'` > cat boot.img core.img > floppy.dsk This is the script I posted a while ago: #!/bin/sh IMAGE=grub2-floppy-i386.ext2fs MNT=/mnt/floppy rm $IMAGE dd if=/dev/zero of=$IMAGE bs=512 count=2880|| exit /sbin/mkfs.ext2 -F $IMAGE ./grub-mkimage -v -d . -o core.img ext2 sudo mount $IMAGE $MNT -o loop mkdir $MNT/grub cp *.img *.mod $MNT/grub echo '(fd0)' $PWD/$IMAGE > tmp_device.map ./grub-setup -d $MNT/grub -m tmp_device.map -r '(fd0)' '(fd0)' rm tmp_device.map cat >$MNT/grub/grub.cfg <