aboutsummaryrefslogtreecommitdiffstats
path: root/systems/build_base_machine.sh
diff options
context:
space:
mode:
authorChristian Trautman <ctrautma@redhat.com>2016-03-21 12:15:23 -0400
committerMaryam Tahhan <maryam.tahhan@intel.com>2016-03-30 14:50:57 +0000
commit9f6805f5a3f17633004325f2ac2b8bca3241128d (patch)
treec12bcbe7783d972a2a1f21afa3d69a24fd481731 /systems/build_base_machine.sh
parentaadc0ab58001b5c32bf641eec4906fd87f59ee49 (diff)
systems: Fix top level build_base_machine script to use ID
Modified top level build_base_machine.sh script to use ID instead of Name from os-release file. Renamed folders to adapt to this change. * Modified ID variable assignment from echo to straight assignment. JIRA: VSPERF-257 Change-Id: I22a7d5a1f191418cbc8fc9fd7d85b013e51b49bc Signed-off-by: Christian Trautman <ctrautma@redhat.com>
Diffstat (limited to 'systems/build_base_machine.sh')
-rwxr-xr-xsystems/build_base_machine.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/systems/build_base_machine.sh b/systems/build_base_machine.sh
index c64f7bb2..59712b96 100755
--- a/systems/build_base_machine.sh
+++ b/systems/build_base_machine.sh
@@ -38,7 +38,7 @@ function die() {
. /etc/os-release
# Get OS name (the First word from $NAME in /etc/os-release)
-OS_NAME=`echo "$NAME" | cut -d ' ' -f1`
+OS_NAME="$ID"
# check if root
if [ "$UID" -ne "$ROOT_UID" ]