Skip to content

Commit 592d33b

Browse files
authored
Merge pull request #2211 from k8s-infra-cherrypick-robot/cherry-pick-2208-to-release-1.27
[release-1.27] fix: install blobfuse2 binary failure on rhcos
2 parents ad58cc1 + 3d2c8c4 commit 592d33b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/blobfuse-proxy/install-proxy-rhcos.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ fi
4949
if [ "$updateBlobfuse2" = "true" ];then
5050
echo "copy blobfuse2...."
5151
cp /usr/bin/blobfuse2 /host${BIN_PATH}/blobfuse2 --force
52+
# if both /usr/lib/libfuse3.so.3 and target folder /host/usr/lib64/ exist, copy libfuse3.so.3 to /host/usr/lib64/
53+
if [ -f "/usr/lib/libfuse3.so.3" ] && [ -d "/host/usr/lib64/" ]; then
54+
echo "copy libfuse3.so.3 to /host/usr/lib64/"
55+
cp /usr/lib/libfuse3.so.3* /host/usr/lib64/
56+
fi
57+
# if both /usr/lib64/libfuse3.so.3 and target folder /host/usr/lib64/ exist, copy libfuse3.so.3 to /host/usr/lib64/
58+
if [ -f "/usr/lib64/libfuse3.so.3" ] && [ -d "/host/usr/lib64/" ]; then
59+
echo "copy libfuse3.so.3 to /host/usr/lib64/"
60+
cp /usr/lib64/libfuse3.so.3* /host/usr/lib64/
61+
fi
5262
chmod 755 /host${BIN_PATH}/blobfuse2
5363
fi
5464

0 commit comments

Comments
 (0)