scripts/setup.sh: match hugetlbfs by type, not device

On some systems, hugetlbfs is reported as being mounted on 'nodev'
rather than 'hugetlbfs'; use the type instead of the device to match the
hugetlbfs filesystem.

Change-Id: I56498b7cf01de9759669fe313048b43b2319b933
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/368228
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Daniel Verkamp 2017-07-05 16:39:28 -07:00 committed by Jim Harris
parent ad474e95bb
commit fc58acea51

View File

@ -42,7 +42,7 @@ function linux_bind_driver() {
}
function linux_hugetlbfs_mount() {
mount | grep '^hugetlbfs ' | awk '{ print $3 }'
mount | grep ' type hugetlbfs ' | awk '{ print $3 }'
}
function configure_linux {