Bug 12320 - Enable multiple kernels and multiple kernel command lines in systemd-boot, grub-efi menu
Summary: Enable multiple kernels and multiple kernel command lines in systemd-boot, gr...
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 6.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on: 11363
Blocks:
  Show dependency tree
 
Reported: 2017-11-08 03:54 UTC by Tim Orling
Modified: 2026-08-13 15:10 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Orling 2017-11-08 03:54:00 UTC
The multiple-kernel built and deployed in one image from BZ#11363 leads to the next enhancement request: 
enabling multiple kernels in systemd-boot or grub-efi (or other) boot menu. 

This is fairly common in mainline Linux distributions and an increasingly frequent request from our customers, especially during development and integration.

In addition to enabling the multiple kernels, while we are at it we should enable multiple kernel command lines in the menu (different options for the same kernel binary).

An example use case is to compare latency/performance of (1) "standard" (e.g. 4.9.47), (2)"stable preempt_rt" (e.g. 4.9.47-rt37) and (3) "rt-devel" (e.g. 4.13.10-rt3) kernels (different binaries) without and with (4,5,6) debug enabled (command line argument).

The three kernels (1,2,3) should be discoverable at image creation time (using, e.g. KERNEL_PACKAGE_NAME[]) and the boot menu should be able to be "auto" populated. The additional command line argument entries (4,5,6) would clearly need to be manually configured by a different mechanism.
Comment 1 Tim Orling 2020-03-12 16:05:21 UTC
The kernels and the kernel modules need to be installed into the EFI System Partition (ESP) [1], so that they are available early in booting. The current implementation from BZ#11363 indeed allows multiple kernels to be installed into the rootfs, but they are not available until after the system has booted and mounted that partition.

[1] https://en.wikipedia.org/wiki/EFI_system_partition
Comment 2 Randy MacLeod 2023-10-24 14:24:19 UTC
Bulk move from 4.99 or 0.00 to 5.99