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>
29 lines
1 KiB
Bash
29 lines
1 KiB
Bash
#! /bin/sh
|
|
set -e
|
|
|
|
# grub-mkconfig helper script.
|
|
# Copyright (C) 2014 Red Hat, Inc
|
|
# Author: Jaroslav Škarvada <jskarvad@redhat.com>
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
#
|
|
|
|
tunedcfgdir=/etc/tuned
|
|
tuned_bootcmdline_file=$tunedcfgdir/bootcmdline
|
|
|
|
. $tuned_bootcmdline_file
|
|
|
|
echo "set tuned_params=\"$TUNED_BOOT_CMDLINE\""
|
|
echo "set tuned_initrd=\"$TUNED_BOOT_INITRD_ADD\""
|