Skip to content

enhancing images, booting and runqemu

Patrick Ohly openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10runqemu: support full-disk imagesscripts/runqemu scripts/runqemu-internal+19 -150 replies
2/10initrdscripts: create /dev/consolemeta/recipes-core/initrdscripts/initramfs-framework_1.0.bb meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb+9 -21 reply
3/10initramfs-framework: handle kernel parameters with . insidemeta/recipes-core/initrdscripts/initramfs-framework/init+2 -11 reply
4/10initramfs-framework: add separate init_verbose log level parametermeta/recipes-core/initrdscripts/initramfs-framework/init+14 -23 replies
5/10initramfs-framework: support mounting rootfs in modulesmeta/recipes-core/initrdscripts/initramfs-framework/finish+19 -144 replies
6/10initramfs-framework: support live imagesmeta/recipes-core/initrdscripts/initramfs-framework/live meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb+140 -00 replies
7/10image-vm.bbclass: avoid duplicating syslinux default valuesmeta/classes/image-vm.bbclass+0 -20 replies
8/10image-vm.bbclass: support specifying an initramfsmeta/classes/image-vm.bbclass+5 -00 replies
9/10boot loader: support root=UUIDmeta/classes/fs-uuid.bbclass meta/classes/grub-efi.bbclass meta/classes/gummiboot.bbclass +1 more+36 -10 replies
10/10boot-directdisk.bbclass: use rootfs UUID by defaultmeta/classes/boot-directdisk.bbclass+1 -10 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchOtavio Salvador
1/10
2/10
3/10A-b
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] enhancing images, booting and runqemu

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
Signature · 1 line
2.1.4