From: Fabian Greffrath <fabian@greffrath.com>
To: Kevin Wolf <kwolf@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] suggestion for the QEMU advent calendar
Date: Tue, 09 Dec 2014 10:44:48 +0100 [thread overview]
Message-ID: <1418118288.19348.19.camel@greffrath.com> (raw)
In-Reply-To: <20141209092846.GA4088@noname.str.redhat.com>
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
next prev parent reply other threads:[~2014-12-09 9:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-05 8:37 [Qemu-devel] suggestion for the QEMU advent calendar Fabian Greffrath
2014-12-08 10:14 ` Stefan Hajnoczi
2014-12-08 15:54 ` Fabian Greffrath
2014-12-08 16:03 ` John Snow
2014-12-08 16:54 ` Fabian Greffrath
2014-12-08 17:19 ` Stefan Hajnoczi
2014-12-09 9:28 ` Kevin Wolf
2014-12-09 9:44 ` Fabian Greffrath [this message]
2014-12-09 9:51 ` Stefan Hajnoczi
2014-12-09 9:54 ` Fabian Greffrath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1418118288.19348.19.camel@greffrath.com \
--to=fabian@greffrath.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).