mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 20:30:56 +00:00
Print before and after results of hack_uname() function
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user