scripts/pkgdep: [rhel] Don't use hard link for a python binary
This limitation may simply fail if /usr is part of a separate mount|fs so softlink it instead. Change-Id: I1e0387c2792c0bbd20d83e9739b3882a7cbbbf50 Signed-off-by: Michal Berger <michalx.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3870 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
3fe748f728
commit
d70ecbe935
@ -11,7 +11,9 @@ yum install -y gcc gcc-c++ make CUnit-devel libaio-devel openssl-devel \
|
||||
if echo "$ID $VERSION_ID" | grep -E -q 'centos 8'; then
|
||||
yum install -y python36
|
||||
#Create hard link to use in SPDK as python
|
||||
ln /etc/alternatives/python3 /usr/bin/python || true
|
||||
if [[ ! -e /usr/bin/python && -e /etc/alternative/python3 ]]; then
|
||||
ln -s /etc/alternatives/python3 /usr/bin/python
|
||||
fi
|
||||
else
|
||||
yum install -y python
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user