Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Patrick Ohly <patrick.ohly@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 00/10] enhancing images, booting and runqemu
Date: Wed,  2 Sep 2015 17:48:39 +0200	[thread overview]
Message-ID: <cover.1441207840.git.patrick.ohly@intel.com> (raw)

I've spent some time lately on building custom full-disk images with a
custom initramfs based on the initramfs-framework. The ultimate goal
is to initialize IMA in a initramfs-framework module.

As part of that work, I enhanced runqemu such that it can boot
full-disk images more easily, made those images more versatile (no
more hard-coded root=/dev/sda2), and solved a kernel panic that only
seems to appear under qemu (the /dev/console issue).

Only a few patches are really important (because I'd probably not be
able to achieve the same effect with setting variables elsewhere):
   boot loader: support root=UUID
   initramfs-framework: handle kernel parameters with . inside
   initramfs-framework: add separate init_verbose log level parameter
   initramfs-framework: support mounting rootfs in modules
   runqemu: support full-disk images

But I think the rest might also be relevant for others and thus
worthwile including.

Note that the mechanism for root=UUID is separated from actually
making that default. Changing the default this late in the development
cycle might be a bit risky, so I'd be fine with leaving out the last
patch which changes the default. On the other hand, it solves one
potential snag for users of these images, so it might be better to
include it - your choice.

The following changes since commit bdeb32b4cdbe316f17c2fd854d59e05e8f2e8ffc:

  rt-tests: drop unnecessary added-missing-dependencies.patch (2015-09-01 11:43:38 +0100)

are available in the git repository at:

  git://github.com/pohly/openembedded-core booting
  https://github.com/pohly/openembedded-core/tree/booting

Patrick Ohly (10):
  runqemu: support full-disk images
  initrdscripts: create /dev/console
  initramfs-framework: handle kernel parameters with . inside
  initramfs-framework: add separate init_verbose log level parameter
  initramfs-framework: support mounting rootfs in modules
  initramfs-framework: support live images
  image-vm.bbclass: avoid duplicating syslinux default values
  image-vm.bbclass: support specifying an initramfs
  boot loader: support root=UUID
  boot-directdisk.bbclass: use rootfs UUID by default

 meta/classes/boot-directdisk.bbclass               |   2 +-
 meta/classes/fs-uuid.bbclass                       |  24 ++++
 meta/classes/grub-efi.bbclass                      |   4 +
 meta/classes/gummiboot.bbclass                     |   4 +
 meta/classes/image-vm.bbclass                      |   7 +-
 meta/classes/syslinux.bbclass                      |   5 +-
 .../initrdscripts/initramfs-framework/finish       |  33 +++---
 .../initrdscripts/initramfs-framework/init         |  19 ++-
 .../initrdscripts/initramfs-framework/live         | 131 +++++++++++++++++++++
 .../initrdscripts/initramfs-framework_1.0.bb       |  16 ++-
 .../initrdscripts/initramfs-live-boot_1.0.bb       |   4 +-
 scripts/runqemu                                    |  24 ++--
 scripts/runqemu-internal                           |  10 +-
 13 files changed, 245 insertions(+), 38 deletions(-)
 create mode 100644 meta/classes/fs-uuid.bbclass
 create mode 100644 meta/recipes-core/initrdscripts/initramfs-framework/live

-- 
2.1.4



             reply	other threads:[~2015-09-02 15:48 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-02 15:48 Patrick Ohly [this message]
2015-09-02 15:48 ` [PATCH 01/10] runqemu: support full-disk images Patrick Ohly
2015-09-02 15:48 ` [PATCH 02/10] initrdscripts: create /dev/console Patrick Ohly
2015-09-02 16:08   ` Otavio Salvador
2015-09-02 15:48 ` [PATCH 03/10] initramfs-framework: handle kernel parameters with . inside Patrick Ohly
2015-09-02 16:09   ` Otavio Salvador
2015-09-02 15:48 ` [PATCH 04/10] initramfs-framework: add separate init_verbose log level parameter Patrick Ohly
2015-09-02 16:16   ` Otavio Salvador
2015-09-03  6:36     ` Patrick Ohly
2015-09-03 11:50       ` Otavio Salvador
2015-09-02 15:48 ` [PATCH 05/10] initramfs-framework: support mounting rootfs in modules Patrick Ohly
2015-09-02 16:19   ` Otavio Salvador
2015-09-02 16:24     ` Otavio Salvador
2015-09-03  6:29       ` Patrick Ohly
2015-09-03 11:55         ` Otavio Salvador
2015-09-02 15:48 ` [PATCH 06/10] initramfs-framework: support live images Patrick Ohly
2015-09-02 15:48 ` [PATCH 07/10] image-vm.bbclass: avoid duplicating syslinux default values Patrick Ohly
2015-09-02 15:48 ` [PATCH 08/10] image-vm.bbclass: support specifying an initramfs Patrick Ohly
2015-09-02 15:48 ` [PATCH 09/10] boot loader: support root=UUID Patrick Ohly
2015-09-02 15:48 ` [PATCH 10/10] boot-directdisk.bbclass: use rootfs UUID by default Patrick Ohly
2015-09-02 16:28 ` [PATCH 00/10] enhancing images, booting and runqemu Otavio Salvador
2015-09-03 18:42 ` [PATCH 0/8] enhancing images, booting and runqemu, simplified version Patrick Ohly
2015-09-03 18:42   ` [PATCH 1/8] runqemu: support full-disk images Patrick Ohly
2015-09-03 18:42   ` [PATCH 2/8] initramfs-framework: create /dev/console Patrick Ohly
2015-09-03 21:34     ` Khem Raj
2015-09-04  7:08       ` Patrick Ohly
2015-09-03 18:42   ` [PATCH 3/8] initramfs-live-boot: " Patrick Ohly
2015-09-03 18:42   ` [PATCH 4/8] initramfs-framework: handle kernel parameters with . inside Patrick Ohly
2015-09-03 18:42   ` [PATCH 5/8] image-vm.bbclass: avoid duplicating syslinux default values Patrick Ohly
2015-09-03 18:42   ` [PATCH 6/8] image-vm.bbclass: support specifying an initramfs Patrick Ohly
2015-09-03 18:42   ` [PATCH 7/8] boot loader: support root=UUID Patrick Ohly
2015-09-03 18:42   ` [PATCH 8/8] boot-directdisk.bbclass: use rootfs UUID by default Patrick Ohly

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=cover.1441207840.git.patrick.ohly@intel.com \
    --to=patrick.ohly@intel.com \
    --cc=openembedded-core@lists.openembedded.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