Future release of Fedora are going to remove /etc/sysconfig/network which we source to get $HOSTNAME. Bash (and sh) set $HOSTNAME in the shell by default, so we should be safe to use that here. This adds the benefit of working across multiple distributions if that is required in the future.
Related: rhbz881917 Signed-off-by: Jon Stanley <jonstan...@gmail.com> Cc: Doug Ledford <dledf...@redhat.com> Cc: Ira Weiny <wei...@llnl.gov> --- scripts/set_nodedesc.sh | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/scripts/set_nodedesc.sh b/scripts/set_nodedesc.sh index 1e42ac8..3d2e406 100755 --- a/scripts/set_nodedesc.sh +++ b/scripts/set_nodedesc.sh @@ -1,8 +1,5 @@ #!/bin/sh -if [ -f /etc/sysconfig/network ]; then -. /etc/sysconfig/network -fi ib_sysfs="/sys/class/infiniband" newname="$HOSTNAME" -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html