[OE-core] [PATCH 00/10] enhancing images, booting and runqemu

Patrick Ohly patrick.ohly at intel.com
Wed Sep 2 15:48:39 UTC 2015


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




More information about the Openembedded-core mailing list