From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyHLm-0008PL-Hr for qemu-devel@nongnu.org; Tue, 09 Dec 2014 04:45:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyHLf-0006WO-24 for qemu-devel@nongnu.org; Tue, 09 Dec 2014 04:44:58 -0500 Received: from greffrath.com ([46.182.18.67]:40607 helo=mail.greffrath.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyHLe-0006VP-SN for qemu-devel@nongnu.org; Tue, 09 Dec 2014 04:44:51 -0500 Message-ID: <1418118288.19348.19.camel@greffrath.com> From: Fabian Greffrath Date: Tue, 09 Dec 2014 10:44:48 +0100 In-Reply-To: <20141209092846.GA4088@noname.str.redhat.com> References: <1417768674.2432.1.camel@greffrath.com> <1418054074.3085.1.camel@greffrath.com> <5485CBE8.4000405@redhat.com> <1418057677.8306.6.camel@greffrath.com> <20141209092846.GA4088@noname.str.redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] suggestion for the QEMU advent calendar List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel Am Dienstag, den 09.12.2014, 10:28 +0100 schrieb Kevin Wolf: > Syslinux is relatively easy as well. Just avoid GRUB 2 if you want to > set up disk images from the host. I've done it before, but it's ugly... Yep, I was talking about GRUB 2. However, in the meantime I have figured out what to do in order to create a "minimal" booting image. After all the image creation, partitioning, formatting, device mapping and finally mounting you only have to call "grub-install" with the right parameters (!), copy the actual kernel into the image and create a minimal grub.cfg file. By "right parameters" I meant that grub-install per default copies GRUB 2 in its entirety onto the image, including the whole menu system, graphical support, file system drivers and localization, etc. This will take up about 10MB, which is why I put the "minimal" word in quotation marks. You can, of course, manually select which modules you want to install, but this must be a perfect guess. In my simple case it worked with '--install-modules="part_msdos ext2 multiboot normal" --locales=""' passed to grub-install on the command line. Anyway, it's easier to just boot the multiboot kernel image and be done with it. ;) Cheers, Fabian