diff options
author | Tim Rozet <trozet@redhat.com> | 2016-06-03 17:29:42 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-03 17:29:42 +0000 |
commit | 200e0951c766664e51104c098b43ccd83e9b03ca (patch) | |
tree | e9b8e2a22c0a471ae2592389445b32ce972bc6b1 /build/setkernelparam.sh | |
parent | 0487c382acb6373d26180eb954559c406d5ad528 (diff) | |
parent | 374c0788c83a8384223dc75333422fc6d4a20b14 (diff) |
Merge "Fix kernel parameter setting"
Diffstat (limited to 'build/setkernelparam.sh')
-rw-r--r-- | build/setkernelparam.sh | 27 |
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 |