1
0
Fork 0
tuned/bootcmdline
Jaroslav Škarvada 047a7335b0 bootloader: add support for initrd overlays
The bootloader plugin now supports the following options:
  initrd_add_img=IMAGE
  initrd_add_dir=DIR
  initrd_dst_img=PATHNAME

The 'initrd_add_img' adds initrd overlay named IMAGE. The IMAGE is
added from the current profile directory. If IMAGE begins with '/' it's
taken as absolute path (e.g. initrd_add_img="/root/overlay.img").

The 'initrd_add_dir' creates initrd image from the DIR at first and then
adds the image as a overlay. The DIR is taken from the current profile
directory. If DIR begins with '/' it's taken as absolute path.

The 'initrd_dst_img' sets the name and location of the resulting initrd
image. Usually it is not needed to set it. By default the location of
initrd images is /boot and the name of the image is taken as a basename
of IMAGE or DIR. This can be overridden by 'initrd_dst_img'

Currently grub2-mkconfig doesn't support initrd overlays, so the initrd
settings are lost after 'grub2-mkconfig -o /boot/grub2/grub.cfg' is
issued. There is grub2 RFE bugzilla:
https://bugzilla.redhat.com/show_bug.cgi?id=1427899

Resolves: rhbz#1414098

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
2017-03-01 15:56:17 +01:00

37 lines
1.1 KiB
Text

# This file specifies additional parameters to kernel boot command line and
# initrd overlay images. Its content is set by the Tuned bootloader plugin
# and sourced by the grub2-mkconfig (/etc/grub.d/00_tuned script).
#
# Please do not edit this file. Content of this file can be overwritten by
# switch of Tuned profile.
#
# If you need to add parameters to the kernel boot command line, create
# Tuned profile containing the following:
#
# [bootloader]
# cmdline = YOUR_ADDITIONAL_KERNEL_PARAMETERS
#
# Then switch to your newly created profile by:
#
# tuned-adm profile YOUR_NEW_PROFILE
#
# Your current grub2 config will be patched, but you can also
# regenerate it anytime by:
#
# grub2-mkconfig -o /boot/grub2/grub.cfg
#
# YOUR_ADDITIONAL_KERNEL_PARAMETERS will stay preserved.
#
# Similarly if you need to add initrd overlay image, create Tuned profile
# containing the following:
#
# [bootloader]
# initrd_add_img = INITRD_OVERLAY_IMAGE
#
# or to generate initrd overlay image from the directory:
#
# [bootloader]
# initrd_add_dir = INITRD_OVERLAY_DIRECTORY
TUNED_BOOT_CMDLINE=
TUNED_BOOT_INITRD_ADD=