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