2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

Print before and after results of hack_uname() function

This commit is contained in:
Mark Gurevich
2016-09-14 14:39:10 -04:00
parent 3d90e27584
commit 709e85f847

View File

@ -137,6 +137,7 @@ echo "NODESETSTATE is $NODESETSTATE"
function hack_uname()
{
BEFORE_UNAME_HACK="$($1/bin/uname -r)"
mv "$1/bin/uname" "$1/bin/uname.save"
cat <<-EOF >"$1/bin/uname"
#!/bin/sh
@ -164,6 +165,8 @@ function hack_uname()
EOF
chmod 0755 "$1/bin/uname"
AFTER_UNAME_HACK="$($1/bin/uname -r)"
echo "Before hack-uname() to replace 'uname' command, 'uname -r'='${BEFORE_UNAME_HACK}'. After, 'uname -r'='${AFTER_UNAME_HACK}'"
}
function cleanup()