summaryrefslogtreecommitdiffstats
path: root/build/setkernelparam.sh
diff options
context:
space:
mode:
authorFeng Pan <fpan@redhat.com>2016-06-01 15:02:35 -0400
committerFeng Pan <fpan@redhat.com>2016-06-02 21:10:29 +0000
commit374c0788c83a8384223dc75333422fc6d4a20b14 (patch)
tree0ee83ffe502cf6290beb7152929f21dc558b58d9 /build/setkernelparam.sh
parentae28031af48b31d909eaa9ea2290f578309e4000 (diff)
Fix kernel parameter setting
We can use a single line command to change kernel parameters, it is not necessary to have a script. Change-Id: I8988464d9a84a223803c69e676483787de49b4ab Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'build/setkernelparam.sh')
-rw-r--r--build/setkernelparam.sh27
1 files changed, 0 insertions, 27 deletions
diff --git a/build/setkernelparam.sh b/build/setkernelparam.sh
deleted file mode 100644
index b6986d6c..00000000
--- a/build/setkernelparam.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-##############################################################################
-# Copyright (c) 2016 Red Hat Inc.
-# Michael Chapman <michapma@redhat.com>
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-GRUBCONF='/boot/grub2/grub.conf'
-
-if [ "$1" == "" ]; then
- echo "No kernel parameter name provided, not modifying grub.conf"
- exit 1
-fi
-
-if [ "$2" == "" ]; then
- echo "No kernel parameter value provided, not modifying grub.conf"
- exit 1
-fi
-
-echo "Setting $1=$2 in $GRUBCONF"
-echo "GRUB_CMDLINE_LINUX=\"\$GRUB_CMDLINE_LINUX $1=$2\"" >> /etc/default/grub
-grub2-mkconfig > $GRUBCONF
-exit 0